Sha256: ec378f4f30e8a41fbe2dfc22f42b007cdd8cec2084a1bf9ec7e59882b5c39bd0

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

<VirtualHost *:80>
  ServerName <%= @params[:server_name] %>
  ServerAlias <% @params[:server_aliases].each do |a| %><%= "#{a}" %> <% end %>
  DocumentRoot <%= @params[:docroot] %>

  RailsBaseURI /
  RailsEnv <%= @params[:rails_env] %>

  <Directory <%= @params[:docroot] %>>
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>

  LogLevel info
  ErrorLog <%= node[:apache][:log_dir] %>/<%= @params[:name] %>-error.log
  CustomLog <%= node[:apache][:log_dir] %>/<%= @params[:name] %>-access.log combined

  RewriteEngine On
  RewriteLog <%= node[:apache][:log_dir] %>/<%= @application_name %>-rewrite.log
  RewriteLogLevel 0
  # Canonical host
  RewriteCond %{HTTP_HOST}   !^<%= @params[:server_name] %> [NC]
  RewriteCond %{HTTP_HOST}   !^$
  RewriteRule ^/(.*)$        http://<%= @params[:server_name] %>/$1 [L,R=301]

  RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
  RewriteCond %{SCRIPT_FILENAME} !maintenance.html
  RewriteRule ^.*$ /system/maintenance.html [L]

</VirtualHost>

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
fast_food-0.1.2 chef/cookbooks/passenger_apache2/templates/default/passenger_web_app.conf.erb
fast_food-0.1.2 chef/cookbooks/passenger_apache2/templates/default/web_app.conf.erb
fast_food-0.1.1 chef/cookbooks/passenger_apache2/templates/default/passenger_web_app.conf.erb
fast_food-0.1.1 chef/cookbooks/passenger_apache2/templates/default/web_app.conf.erb
fast_food-0.1.0 chef/cookbooks/passenger_apache2/templates/default/passenger_web_app.conf.erb
fast_food-0.1.0 chef/cookbooks/passenger_apache2/templates/default/web_app.conf.erb