Opened 15 years ago
Closed 13 years ago
#2958 closed defect (fixed)
Add docs for map=<anv_variable_name> in mapserv CGI URLs
Reported by: | dmorissette | Owned by: | jmckenna |
---|---|---|---|
Priority: | normal | Milestone: | 5.6 release |
Component: | Documentation - MapServer | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | havatv |
Description
There is an undocumented map=<env_variable_name> mechanism that can be used to refer to mapfiles via an environment variable instead of exposing full mapfile paths to the outside world.
This needs to be documented in the CGI docs at http://www.mapserver.org/cgi/controls.html
Example, set MY_MAPFILE in Apache's httpd.conf:
SetEnv MY_MAPFILE "/opt/mapserver/map1/mymapfile.map"
... and then refer to it as follows in the mapserv CGI URL:
http://localhost/cgi-bin/mapserv?map=MY_MAPFILE&mode=...
Note:
See TracTickets
for help on using tickets.
Fixed for 6.0 and trunk in r12010.