]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/forum/templates/default/apache.erb
Imagery: set GDAL_CACHEMAX environment variable
[chef.git] / cookbooks / forum / templates / default / apache.erb
index 0eea9db34beaa007ec453b726ad270ac53612674..ad7a36d35a06f226bb3b933d6b64a6e40374d337 100644 (file)
@@ -8,21 +8,39 @@
        CustomLog /var/log/apache2/forum.openstreetmap.org-access.log combined
        ErrorLog /var/log/apache2/forum.openstreetmap.org-error.log
 
-       DocumentRoot /srv/forum.openstreetmap.org/html/
+       RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
+       RedirectPermanent / https://forum.openstreetmap.org/
 </VirtualHost>
 
 <VirtualHost *:443>
        ServerName forum.openstreetmap.org
+       ServerAlias forum.osm.org
        ServerAdmin webmaster@openstreetmap.org
 
        SSLEngine on
-       SSLProtocol all -SSLv2
-       SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
-       SSLCertificateFile /etc/ssl/certs/openstreetmap.pem
-       SSLCertificateKeyFile /etc/ssl/private/openstreetmap.key
+       SSLCertificateFile /etc/ssl/certs/forum.openstreetmap.org.pem
+       SSLCertificateKeyFile /etc/ssl/private/forum.openstreetmap.org.key
 
        CustomLog /var/log/apache2/forum.openstreetmap.org-access.log combined
        ErrorLog /var/log/apache2/forum.openstreetmap.org-error.log
 
-       DocumentRoot /srv/forum.openstreetmap.org
+       DocumentRoot /srv/forum.openstreetmap.org/html
+
+       php_admin_value open_basedir /srv/forum.openstreetmap.org/html/:/usr/share/php/:/tmp/
+       php_admin_value disable_functions "exec,shell_exec,system,passthru,popen,proc_open"
+       php_value upload_max_filesize 70M
+       php_value post_max_size 100M
 </VirtualHost>
+
+<Directory /srv/forum.openstreetmap.org/html>
+       RewriteEngine on
+       RewriteRule ^config\.php$ - [F,L]
+
+       Options -Indexes
+
+       Require all granted
+</Directory>
+
+<Directory /srv/forum.openstreetmap.org/html/img>
+       php_admin_flag engine off
+</Directory>