id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
3845	"The ""A simple CGI wrapper"" solution is over complicated"	agitate	jmckenna	"The documentation for the ""simple CGI wrapper"" presents a solution to avoid specifying the map file within the query. It works well for GET requests but doesn't support POST requests. After looking at the mapserv.c code, I noticed that you can simply set the MS_MAPFILE environment variable to specify the map file to use. The wrapper can be much simplified using this method, and will also support GET and POST requests. The new code for the shell script can be simplified as:

{{{
#!/bin/sh

MAPSERV=""/path/to/my/mapserv""

MS_MAPFILE=""/path/to/my/mapfile.map"" exec ${MAPSERV}
}}}
"	enhancement	closed	normal		Documentation - MapServer	5.6	normal	fixed	wrapper, cgi, mapfile	havatv
