]> git.openstreetmap.org Git - chef.git/blob - cookbooks/forum/templates/default/apache.erb
d84b0196779a277db1618eb737263384cb801aaa
[chef.git] / cookbooks / forum / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4         ServerName forum.openstreetmap.org
5         ServerAlias forum.osm.org
6         ServerAdmin webmaster@openstreetmap.org
7
8         CustomLog /var/log/apache2/forum.openstreetmap.org-access.log combined
9         ErrorLog /var/log/apache2/forum.openstreetmap.org-error.log
10
11         RedirectPermanent / https://forum.openstreetmap.org/
12 </VirtualHost>
13
14 <VirtualHost *:443>
15         ServerName forum.openstreetmap.org
16         ServerAdmin webmaster@openstreetmap.org
17
18         SSLEngine on
19
20         CustomLog /var/log/apache2/forum.openstreetmap.org-access.log combined
21         ErrorLog /var/log/apache2/forum.openstreetmap.org-error.log
22
23         DocumentRoot /srv/forum.openstreetmap.org/html
24
25         php_admin_value open_basedir /srv/forum.openstreetmap.org/html/:/usr/share/php/:/tmp/
26         php_admin_value disable_functions "exec,shell_exec,system,passthru,popen,proc_open"
27         php_value upload_max_filesize 70M
28         php_value post_max_size 100M
29 </VirtualHost>
30
31 <Directory /srv/forum.openstreetmap.org/html>
32            RewriteEngine on
33
34            RewriteRule ^config\.php$ - [F,L]
35 </Directory>
36
37 <Directory /srv/forum.openstreetmap.org/html/img>
38         php_admin_flag engine off
39 </Directory>