Imagery - Add note about overriding QUERY_STRING
authorGrant Slater <git@firefishy.com>
Sun, 31 Jan 2016 16:39:55 +0000 (16:39 +0000)
committerGrant Slater <git@firefishy.com>
Sun, 31 Jan 2016 16:48:20 +0000 (16:48 +0000)
cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb

index f5d687f68708e1f22909635acb34b21df3ab2aac..9c3fbd538e95db3b1c063c1f500a4af375e6ca7d 100644 (file)
@@ -1,6 +1,7 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
 location ~* "^/layer/<%= @name %>/(\d+)/(\d+)/(\d+)\.(png|jpg|jpeg)$" {
+  # Override QUERY_STRING to force mapserver query parameters
   fastcgi_param  QUERY_STRING "map=/srv/imagery/<%= @name %>.map&mode=tile&layers=<%= @name %>&tilemode=gmap&tile=$2+$3+$1";
   fastcgi_pass "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket";
   include fastcgi_params;