diff options
author | varac <varacanero@zeromail.org> | 2016-01-27 21:03:58 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-01-27 21:03:58 +0100 |
commit | 33cf7e313cf9dfa2e5ac0e8eeb91cacb016ebe62 (patch) | |
tree | bc6c7f75b4556d86c044452b412931436968efdf /puppet/modules/site_static/templates/rack.erb | |
parent | 01b05ec8453b44d93780e04dd832b9a0e7b3cd48 (diff) |
[refactor] Optimize static apache vhost templates
- Related: #7853
Diffstat (limited to 'puppet/modules/site_static/templates/rack.erb')
-rw-r--r-- | puppet/modules/site_static/templates/rack.erb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/puppet/modules/site_static/templates/rack.erb b/puppet/modules/site_static/templates/rack.erb index aae91f1c..d70d3ddb 100644 --- a/puppet/modules/site_static/templates/rack.erb +++ b/puppet/modules/site_static/templates/rack.erb @@ -1,21 +1,15 @@ #PassengerLogLevel 1 #PassengerAppEnv production #PassengerFriendlyErrorPages on -<%- if @location_path == '' -%> - <Directory "<%=@directory%>"> - Order deny,allow - Allow from all - Options -MultiViews - </Directory> -<%- else -%> +<%- if @location_path != '' -%> Alias /<%=@location_path%> "<%=@directory%>" <Location /<%=@location_path%>> PassengerBaseURI /<%=@location_path%> PassengerAppRoot "<%=File.dirname(@directory)%>" </Location> +<%- end -%> <Directory "<%=@directory%>"> Order deny,allow Allow from all Options -MultiViews </Directory> -<%- end -%> |