From db079c5b812a1cab38f2c7707a9d1c842fe71bd4 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 24 Nov 2019 20:52:24 +0000 Subject: [PATCH 1/1] tilecache: fix limit supported request methods --- .../tilecache/templates/default/nginx_tile.conf.erb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index bc41ffbaf..eb7cb6771 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -105,11 +105,6 @@ server { # See: http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_early_data ssl_early_data on; - # Only allow GET / HEAD / OPTIONS (CORS) requests - limit_except GET HEAD OPTIONS { - deny all; - } - # Immediately 404 layers we do not support <% for i in 20..99 do %> location /<%= i %>/ { @@ -184,6 +179,11 @@ server { # Dedicated zoom handler for caching location /<%= i %>/ { <% end %> + # Only allow GET / HEAD / OPTIONS (CORS) requests + limit_except GET HEAD OPTIONS { + deny all; + } + proxy_pass http://tile_cache_backend; proxy_set_header X-Forwarded-For $remote_addr; proxy_http_version 1.1; -- 2.43.2