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