ErrorLog /var/log/apache2/error.log
BufferedLogs on
+ # Always set Access-Control-Allow-Origin so that simple CORS requests
+ # will always work and can be cached
+ Header set Access-Control-Allow-Origin "*"
+
# Enable the rewrite engine
RewriteEngine on
<Directory /srv/tile.openstreetmap.org/html>
Options None
AllowOverride None
+<% if node[:lsb][:release].to_f >= 14.04 -%>
+ Require all granted
+<% else -%>
Order allow,deny
Allow from all
+<% end -%>
</Directory>
<Directory /srv/tile.openstreetmap.org/cgi-bin>
Options ExecCGI
AllowOverride None
+<% if node[:lsb][:release].to_f >= 14.04 -%>
+ Require all granted
+<% else -%>
Order allow,deny
Allow from all
+<% end -%>
</Directory>