ErrorLog /var/log/apache2/error.log
BufferedLogs on
- # Set Access-Control-Allow-Origin header to allow Cross-origin resource sharing (CORS)
+ # 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
<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>