apache-root #11

Merged
wmantly merged 2 commits from apache-root into master 2019-07-01 03:31:37 +00:00
Showing only changes of commit dfd824e495 - Show all commits

View File

@ -41,13 +41,22 @@
</FilesMatch> </FilesMatch>
</IfModule> </IfModule>
<% if node['web']['root'] %>
DocumentRoot <%= node['web']['root'] %>
<Directory <%= node['web']['root'] %>/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<% end - %>
<% if node['web']['static'] %> <% if node['web']['static'] %>
<% node['web']['static'].each do |static| -%> <% node['web']['static'].each do |static| -%>
Alias <%= static['uri'] %> <%= node['working-dir'] %>/<%= static['path'] %> Alias <%= static['uri'] %> <%= node['working-dir'] %>/<%= static['path'] %>
<% end -%> <% end -%>
<% end -%> <% end -%>
<% if node['web']['wsgi'] %> <% if node['web']['wsgi'] %>
WSGIDaemonProcess <%= node['app']['name'] %> python-path=<%= node['python']['working-dir'] %> python-home=<%= node['python']['env_path'] %> WSGIDaemonProcess <%= node['app']['name'] %> python-path=<%= node['python']['working-dir'] %> python-home=<%= node['python']['env_path'] %>