]> git.openstreetmap.org Git - chef.git/blob - cookbooks/forum/templates/default/apache.erb
Imagery: set GDAL_CACHEMAX environment variable
[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 /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
12         RedirectPermanent / https://forum.openstreetmap.org/
13 </VirtualHost>
14
15 <VirtualHost *:443>
16         ServerName forum.openstreetmap.org
17         ServerAlias forum.osm.org
18         ServerAdmin webmaster@openstreetmap.org
19
20         SSLEngine on
21         SSLCertificateFile /etc/ssl/certs/forum.openstreetmap.org.pem
22         SSLCertificateKeyFile /etc/ssl/private/forum.openstreetmap.org.key
23
24         CustomLog /var/log/apache2/forum.openstreetmap.org-access.log combined
25         ErrorLog /var/log/apache2/forum.openstreetmap.org-error.log
26
27         DocumentRoot /srv/forum.openstreetmap.org/html
28
29         php_admin_value open_basedir /srv/forum.openstreetmap.org/html/:/usr/share/php/:/tmp/
30         php_admin_value disable_functions "exec,shell_exec,system,passthru,popen,proc_open"
31         php_value upload_max_filesize 70M
32         php_value post_max_size 100M
33 </VirtualHost>
34
35 <Directory /srv/forum.openstreetmap.org/html>
36         RewriteEngine on
37         RewriteRule ^config\.php$ - [F,L]
38
39         Options -Indexes
40
41         Require all granted
42 </Directory>
43
44 <Directory /srv/forum.openstreetmap.org/html/img>
45         php_admin_flag engine off
46 </Directory>