1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 <% @aliases.each do |alias_name| -%>
6 ServerAlias <%= alias_name %>
9 ServerAdmin webmaster@openstreetmap.org
11 CustomLog /var/log/apache2/<%= @name %>-access.log combined
12 ErrorLog /var/log/apache2/<%= @name %>-error.log
14 DocumentRoot <%= @directory %>
15 <% @urls.each do |url,directory| -%>
16 Alias <%= url %> <%= directory %>
19 php_admin_value open_basedir <%= @directory %>/:/usr/share/php/:/tmp/
20 php_admin_value disable_functions "exec,shell_exec,system,passthru,popen,proc_open"
21 php_value upload_max_filesize 70M
22 php_value post_max_size 100M
24 <Directory <%= @directory %>>
27 RewriteRule ^wp-admin/includes/ - [F,L]
28 RewriteRule !^wp-includes/ - [S=3]
29 RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
30 RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
31 RewriteRule ^wp-includes/theme-compat/ - [F,L]
32 RewriteCond %{REQUEST_FILENAME} !-f
33 RewriteCond %{REQUEST_FILENAME} !-d
34 RewriteRule . /index.php [L]
38 <Files <%= @directory %>/wp-config.php>
43 <Directory <%= @directory %>/uploads>
45 AddType text/plain .html .htm .shtml
46 php_admin_flag engine off