vagrant-wordpress/cookbooks/wordpress/templates/default/wordpress.conf.erb
2011-12-17 15:04:36 +01:00

25 lines
681 B
Plaintext

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