X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7cd3afb93c1d0faa260130d3322a7d98e3b6cf01..066c0bfda604f2a662fa1d4b1b5942fc598a05a4:/cookbooks/forum/templates/default/apache.erb diff --git a/cookbooks/forum/templates/default/apache.erb b/cookbooks/forum/templates/default/apache.erb index 0eea9db34..5235ee1f8 100644 --- a/cookbooks/forum/templates/default/apache.erb +++ b/cookbooks/forum/templates/default/apache.erb @@ -8,7 +8,22 @@ 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/ + + + + ServerAlias forum.osm.org + ServerAdmin webmaster@openstreetmap.org + + SSLEngine on + 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 + + RedirectPermanent / https://forum.openstreetmap.org/ @@ -16,13 +31,30 @@ 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 + + + SetHandler "proxy:unix:/run/php/php-forum.openstreetmap.org-fpm.sock|fcgi://127.0.0.1" + + + + RewriteEngine on + RewriteRule ^config\.php$ - [F,L] + + Options -Indexes + + Require all granted + + + + + SetHandler None + +