diff --git a/templates/default/web_app.conf.erb b/templates/default/web_app.conf.erb index 513643d..edae4b1 100644 --- a/templates/default/web_app.conf.erb +++ b/templates/default/web_app.conf.erb @@ -19,8 +19,12 @@ LogLevel warn + <% if node['apache'] && node['apache']['version'] == '2.4' %> + Require all granted + <% else %> Order Deny,Allow Allow from all + <% end %> ProxyPass / http://localhost:<%= node['stash']['tomcat']['port'] %>/ connectiontimeout=5 timeout=300 ProxyPassReverse / http://localhost:<%= node['stash']['tomcat']['port'] %>/ @@ -43,8 +47,12 @@ LogLevel warn + <% if node['apache'] && node['apache']['version'] == '2.4' %> + Require all granted + <% else %> Order Deny,Allow Allow from all + <% end %> ProxyPass / http://localhost:<%= node['stash']['tomcat']['port'] %>/ connectiontimeout=5 timeout=300 ProxyPassReverse / http://localhost:<%= node['stash']['tomcat']['port'] %>/ @@ -55,4 +63,4 @@ <% unless node['stash']['apache2']['ssl']['chain_file'].empty? -%> SSLCertificateChainFile <%= node['stash']['apache2']['ssl']['chain_file'] %> <% end -%> - \ No newline at end of file +