X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1ce4b4b8855822a61231b92e1bea70e606d7316d..8273ef2eea66bd68ce328ebc78b1c5f49513e35c:/cookbooks/mediawiki/templates/default/apache.erb diff --git a/cookbooks/mediawiki/templates/default/apache.erb b/cookbooks/mediawiki/templates/default/apache.erb index 31f521fbd..d3d25a3a1 100644 --- a/cookbooks/mediawiki/templates/default/apache.erb +++ b/cookbooks/mediawiki/templates/default/apache.erb @@ -8,8 +8,7 @@ ServerAdmin webmaster@openstreetmap.org - LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus" combined_with_time - CustomLog /var/log/apache2/<%= @name %>-access.log combined_with_time + CustomLog /var/log/apache2/<%= @name %>-access.log combined_extended ErrorLog /var/log/apache2/<%= @name %>-error.log RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/ @@ -28,9 +27,8 @@ SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key - LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus" combined_with_time - CustomLog /var/log/apache2/<%= @name %>-secure-access.log combined_with_time - ErrorLog /var/log/apache2/<%= @name %>-secure-error.log + CustomLog /var/log/apache2/<%= @name %>-access.log combined_extended + ErrorLog /var/log/apache2/<%= @name %>-error.log DocumentRoot <%= @directory %> @@ -87,6 +85,7 @@ RewriteCond %{REQUEST_URI} !^/prop/ RewriteCond %{REQUEST_URI} !^/dump/ RewriteCond %{REQUEST_URI} !^/server-status + RewriteCond %{REQUEST_URI} !^/server-info RewriteCond %{REQUEST_URI} !^/.well-known/ RewriteCond %{LA-U:REQUEST_FILENAME} !-f RewriteCond %{LA-U:REQUEST_FILENAME} !-d