From: Grant Slater Date: Sun, 31 Jan 2016 19:53:42 +0000 (+0000) Subject: Imagery - fix mapserver map path X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/5060176df83701571e499e4770fe9d5035dea11f Imagery - fix mapserver map path --- 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;