Skip to content
Snippets Groups Projects
Commit 9a39c936 authored by David Hoese's avatar David Hoese
Browse files

Merge branch 'feature-mapserver-defer-connection' into 'master'

Change mapserver to defer connection closing for better FCGI

See merge request cspp_geo/cspp-geo-web-viewer!23
parents 225f9b99 0cc1101a
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,8 @@ MAP
"{{ projection }}"
END
PROCESSING "RESAMPLE=AVERAGE"
# Used to keep FastCGI connections open longer
PROCESSING "CLOSE_CONNECTION=DEFER"
METADATA
"wms_title" "{{ platform_long_name }} ABI {{ product.replace('_', ' ').title() }}"
"wms_extent" "-180 -90 180 90"
......
......@@ -31,14 +31,14 @@
RewriteEngine on
# /wms/g16/abi/radf/l1b?...
# /wms/g16/abi/radf/borders?...
RewriteRule "^/wms/([^/]+)/([^/]+)/([^/]+)/([^/]+)?(.*)" "/cgi-bin/mapserv?map=/work/mapfiles/$1_$2_$3_$4.map&$5" [PT,QSA]
RewriteRule "^/wms/([^/]+)?(.*)" "/cgi-bin/mapserv?map=/work/mapfiles/$1.map&$2" [PT,QSA]
# FCGI version of the above
# FCGI version of the URL
RewriteRule "^/fwms/([^/]+)/([^/]+)/([^/]+)/([^/]+)?(.*)" "/cgi-bin/mapserv.fcgi?map=/work/mapfiles/$1_$2_$3_$4.map&$5" [PT,QSA]
RewriteRule "^/fwms/([^/]+)?(.*)" "/cgi-bin/mapserv.fcgi?map=/work/mapfiles/$1.map&$2" [PT,QSA]
# /wms_times/g16/abi/radf/true_color
RewriteRule "^/wms_times/([^/]+)/([^/]+)/([^/]+)/([^/]+)" "/cgi-bin/layer_times.py?layer=/data/tiles/$1/$2/$3/$4/$4.shp" [PT,QSA]
LogLevel alert rewrite:trace6
# Regular CGI version of the URL (put last since it should be used less often)
RewriteRule "^/wms/([^/]+)/([^/]+)/([^/]+)/([^/]+)?(.*)" "/cgi-bin/mapserv?map=/work/mapfiles/$1_$2_$3_$4.map&$5" [PT,QSA]
RewriteRule "^/wms/([^/]+)?(.*)" "/cgi-bin/mapserv?map=/work/mapfiles/$1.map&$2" [PT,QSA]
# handler should be added by the enabled module
#AddHandler fcgid-script fcgi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment