Sha256: a0eec425f4ab18c4a3e1e59767063a144e9104c4e1cf93de4ab880e3ae266475

Contents?: true

Size: 1.24 KB

Versions: 67

Compression:

Stored size: 1.24 KB

Contents

<VirtualHost *:80>
  ServerName <%= @params[:server_name] %>
  ServerAlias <% @params[:server_aliases].each do |a| %><%= "#{a}" %> <% end %>
  DocumentRoot <%= @params[:docroot] %>
  RewriteEngine On
  
  <Directory <%= @params[:docroot] %>>
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>
  
  <Directory />
    Options FollowSymLinks
    AllowOverride None
  </Directory>

  <Location /server-status>
    SetHandler server-status

    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
  </Location>

  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, <%= @params[:server_name] %>
  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

67 entries across 67 versions & 3 rubygems

Version Path
auser-poolparty-1.1.4 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.1.5 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.1.6 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.1.7 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.2.0 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.2.1 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.2.10 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.2.11 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.2.12 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.2.2 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.2.3 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.2.4 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.2.7 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.2.8 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.2.9 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.3.0 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.3.1 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.3.10 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.3.11 vendor/chef/apache2/templates/default/web_app.conf.erb
auser-poolparty-1.3.12 vendor/chef/apache2/templates/default/web_app.conf.erb