[mapserver-users] Hiding map= from URL with FastCGI
Russell McOrmond
russell at flora.ca
Mon Dec 15 06:17:52 PST 2008
On Sat, 13 Dec 2008, Jochen Topf wrote:
> I assume you are using Apache. Add something like
>
> SetEnvIf Request_URI "/mapserv" MS_MAPFILE=/path/to/mapfile.map
Thank you. This worked exactly as suggested. I hadn't realized that
FastCGI passed environment variables from the Apache environment, and
doesn't take them from within the fcgi process space.
Here is what we're doing now, one to set the MS_MAPFILE environment
variable, and the other to alias that special URL to the fastcgi compiled
mapserver.
SetEnvIf Request_URI "/base_wms_en" MS_MAPFILE=/where/is/my/basemap_wms_en.map
Alias /base_wms_en /where/is/my/fcgi-bin/mapserv
--
Russell McOrmond, Internet Consultant: <http://www.flora.ca/>
Please help us tell the Canadian Parliament to protect our property
rights as owners of Information Technology. Sign the petition!
http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca
"The government, lobbied by legacy copyright holders and hardware
manufacturers, can pry control over my camcorder, computer,
home theatre, or portable media player from my cold dead hands!"
More information about the MapServer-users
mailing list