Imagery - fix mapserver map path
authorGrant Slater <git@firefishy.com>
Sun, 31 Jan 2016 19:53:42 +0000 (19:53 +0000)
committerGrant Slater <git@firefishy.com>
Sun, 31 Jan 2016 19:53:42 +0000 (19:53 +0000)
cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb

index 9c3fbd538e95db3b1c063c1f500a4af375e6ca7d..d589e0b2f770d130bfccaf4212a9480f667a22f1 100644 (file)
@@ -2,7 +2,7 @@
 
 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_param  QUERY_STRING "map=/srv/imagery/mapserver/layer-<%= @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;
   gzip off;