imagery: force only GET requests to mapserver
authorGrant Slater <git@firefishy.com>
Sat, 11 Jun 2016 19:18:46 +0000 (20:18 +0100)
committerGrant Slater <git@firefishy.com>
Sat, 11 Jun 2016 19:18:46 +0000 (20:18 +0100)
cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb

index 036c8ac237d0da265f30561c1e7e544e8ae00e48..a8caab7a4fb94f57168221f966ff200faa3bb4e0 100644 (file)
@@ -6,6 +6,7 @@ location ~* "^/layer/<%= @layer %>/(\d+)/(\d+)/(\d+)\.(png|jpg|jpeg)$" {
   fastcgi_pass "unix:/var/run/mapserver-fastcgi/layer-<%= @layer %>.socket";
   fastcgi_buffers 8 64k;
   include fastcgi_params;
+  fastcgi_param REQUEST_METHOD "GET";
 
   # Caching
   fastcgi_cache "fastcgi_cache_zone";