summaryrefslogtreecommitdiff
path: root/puppet/modules/site_static/templates/rack.erb
blob: 1cbf84d22c0d0c21169d9cc1a17dab98a01f00ba (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>