X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/fa8334fee26c32c7afdb5db717f5077165b8d827..48217a85b90d2c4b3378b65206b6c5e2686c2a94:/cookbooks/web/templates/default/apache.frontend.erb diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index 650b3074a..aa2aa1d98 100644 --- a/cookbooks/web/templates/default/apache.frontend.erb +++ b/cookbooks/web/templates/default/apache.frontend.erb @@ -20,7 +20,7 @@ # # Setup logging # - LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Ts %{UNIQUE_ID}e %{SSL_PROTOCOL}x %{SSL_CIPHER}x" combined_with_time + LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus %{UNIQUE_ID}e %{SSL_PROTOCOL}x %{SSL_CIPHER}x" combined_with_time CustomLog /var/log/apache2/access.log combined_with_time ErrorLog /var/log/apache2/error.log @@ -30,6 +30,11 @@ ExpiresActive On RewriteEngine on + # + # Configure on the fly compression + # + AddOutputFilterByType DEFLATE image/svg+xml + # # Add the unique ID to the request headers # @@ -47,6 +52,12 @@ RewriteCond %{HTTP_USER_AGENT} tilesAtHome RewriteRule . - [F,L] + # + # Block changeset scraper + # + RewriteCond %{HTTP_USER_AGENT} "OSMApp Tuner" + RewriteRule . - [F,L] + # # Block requests for the old 404 map tile #