]> git.openstreetmap.org Git - chef.git/blob - cookbooks/forum/templates/default/apache.erb
4b3c844c82cc79c29069356182773a5d60d4bfcb
[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         RewriteRule ^config\.php$ - [F,L]
34
35         Options -Indexes
36
37         Require all granted
38 </Directory>
39
40 <Directory /srv/forum.openstreetmap.org/html/img>
41         php_admin_flag engine off
42 </Directory>