12345678910111213141516171819202122232425262728293031323334 |
- <VirtualHost *:8080>
- 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
- </VirtualHost>
|