X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f30d59e20c5c515986a14c86afbbc7f164ee1eb0..0885511637f2cab59071459563704c79be69249c:/cookbooks/gps-tile/templates/default/apache.erb?ds=sidebyside diff --git a/cookbooks/gps-tile/templates/default/apache.erb b/cookbooks/gps-tile/templates/default/apache.erb index 7572327c3..73564f543 100644 --- a/cookbooks/gps-tile/templates/default/apache.erb +++ b/cookbooks/gps-tile/templates/default/apache.erb @@ -1,11 +1,19 @@ # DO NOT EDIT - This file is being maintained by Chef - +<% [80, 443].each do |port| -%> +> # Basic server configuration ServerName <%= node[:fqdn] %> + ServerAlias gps.tile.openstreetmap.org + ServerAlias gps-*.tile.openstreetmap.org ServerAlias gps-tile.openstreetmap.org ServerAlias *.gps-tile.openstreetmap.org ServerAdmin webmaster@openstreetmap.org +<% if port == 443 -%> + + # Enable SSL + SSLEngine on +<% end -%> # Configure location of static files DocumentRoot /srv/gps-tile.openstreetmap.org/html @@ -26,9 +34,15 @@ Header set Access-Control-Allow-Origin "*" +<% end -%> Options None AllowOverride None - Order allow,deny - Allow from all + Require all granted + + + + + Require all granted +