I want to create a wrapper for my server. (I use mapserver and apache on windows server)
In this document ( http://mapserver.org/cgi/wrapper.html ) refer to suggestions:
1st :
#!/bin/sh MAPSERV="/path/to/my/mapserv" MS_MAPFILE="/path/to/my/mapfile.map" exec ${MAPSERV} 2nd :
#!/bin/sh MAPSERV="/path/to/my/mapserv" MAPFILE="/path/to/my/mapfile.map" if [ "${REQUEST_METHOD}" = "GET" ]; then if [ -z "${QUERY_STRING}" ]; then QUERY_STRING="map=${MAPFILE}" else QUERY_STRING="map=${MAPFILE}&${QUERY_STRING}" fi exec ${MAPSERV} else echo "Sorry, I only understand GET requests." fi exit 1 # End of Script 1. Are that run on windows server?
2. in that document say : "Put the script in your web server’s cgi-bin directory, and make it executable". what is the name and extension of saved script ?
also in MapServer WMS Document in url "http://mapserver.org/ogc/wfs_server.html" refer to some suggestions :
4. "1st suggestion" and "Apache mod_rewrite" are seems easy and good Enough. Is not it?
أكثر...
In this document ( http://mapserver.org/cgi/wrapper.html ) refer to suggestions:
1st :
#!/bin/sh MAPSERV="/path/to/my/mapserv" MS_MAPFILE="/path/to/my/mapfile.map" exec ${MAPSERV} 2nd :
#!/bin/sh MAPSERV="/path/to/my/mapserv" MAPFILE="/path/to/my/mapfile.map" if [ "${REQUEST_METHOD}" = "GET" ]; then if [ -z "${QUERY_STRING}" ]; then QUERY_STRING="map=${MAPFILE}" else QUERY_STRING="map=${MAPFILE}&${QUERY_STRING}" fi exec ${MAPSERV} else echo "Sorry, I only understand GET requests." fi exit 1 # End of Script 1. Are that run on windows server?
2. in that document say : "Put the script in your web server’s cgi-bin directory, and make it executable". what is the name and extension of saved script ?
also in MapServer WMS Document in url "http://mapserver.org/ogc/wfs_server.html" refer to some suggestions :
- Apache ReWrite rules (using Apache mod_rewrite)
- Apache environment variables - MS_MAPFILE
- Apache SetEnvIf
- ASP script (IIS - Microsoft Windows)
- Mapscript wrapper
- Wrapper script (Unix)
4. "1st suggestion" and "Apache mod_rewrite" are seems easy and good Enough. Is not it?
أكثر...