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'] %>