From dfd824e4950e4064aae83e42bc2397e3a3f2416d Mon Sep 17 00:00:00 2001 From: William Mantly Date: Sun, 30 Jun 2019 22:53:06 -0400 Subject: [PATCH] Added document root for acpache --- templates/apache/vhost.conf.erb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/templates/apache/vhost.conf.erb b/templates/apache/vhost.conf.erb index bab179c..10fcf66 100644 --- a/templates/apache/vhost.conf.erb +++ b/templates/apache/vhost.conf.erb @@ -41,13 +41,22 @@ + <% if node['web']['root'] %> + DocumentRoot <%= node['web']['root'] %> + /> + Options Indexes FollowSymLinks + AllowOverride None + Require all granted + + <% end - %> + <% if node['web']['static'] %> <% node['web']['static'].each do |static| -%> Alias <%= static['uri'] %> <%= node['working-dir'] %>/<%= static['path'] %> <% end -%> <% end -%> - + <% if node['web']['wsgi'] %> WSGIDaemonProcess <%= node['app']['name'] %> python-path=<%= node['python']['working-dir'] %> python-home=<%= node['python']['env_path'] %>