X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2c06ac9ac5299064c209c63af2323b2c28186e3c..066c0bfda604f2a662fa1d4b1b5942fc598a05a4:/cookbooks/forum/templates/default/apache.erb diff --git a/cookbooks/forum/templates/default/apache.erb b/cookbooks/forum/templates/default/apache.erb index ad7a36d35..5235ee1f8 100644 --- a/cookbooks/forum/templates/default/apache.erb +++ b/cookbooks/forum/templates/default/apache.erb @@ -13,7 +13,6 @@ - ServerName forum.openstreetmap.org ServerAlias forum.osm.org ServerAdmin webmaster@openstreetmap.org @@ -24,12 +23,25 @@ CustomLog /var/log/apache2/forum.openstreetmap.org-access.log combined ErrorLog /var/log/apache2/forum.openstreetmap.org-error.log + RedirectPermanent / https://forum.openstreetmap.org/ + + + + ServerName forum.openstreetmap.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 + 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 + + SetHandler "proxy:unix:/run/php/php-forum.openstreetmap.org-fpm.sock|fcgi://127.0.0.1" + @@ -42,5 +54,7 @@ - php_admin_flag engine off + + SetHandler None +