summaryrefslogtreecommitdiff
path: root/puppet/modules/site_static/templates/rack.erb
blob: 431778bb340f9b8af72ce35249a3813422906b92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  #PassengerLogLevel 1
  #PassengerAppEnv production
  #PassengerFriendlyErrorPages on
<%- if @location_path != '' -%>
  Alias /<%=@location_path%> "<%=@directory%>"
  <Location /<%=@location_path%>>
    PassengerBaseURI /<%=@location_path%>
    PassengerAppRoot "<%=File.dirname(@directory)%>"
  </Location>
<%- end -%>
  <Directory "<%=@directory%>">
    Options -MultiViews
<% if scope.function_guess_apache_version([]) == '2.4' %>
    Require all granted
<% else %>
    Order deny,allow
    Allow from all
<% end %>
  </Directory>