From 5060176df83701571e499e4770fe9d5035dea11f Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 31 Jan 2016 19:53:42 +0000 Subject: [PATCH] Imagery - fix mapserver map path --- .../templates/default/nginx_imagery_layer_fragment.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb b/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb index 9c3fbd538..d589e0b2f 100644 --- a/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb @@ -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; -- 2.39.5