[MS4W-Users] Using SetEnvIf

Rahkonen Jukka jukka.rahkonen at mmmtike.fi
Mon Mar 25 10:20:35 EST 2013


Hi,

You need to make a copy of mapserver binary (mapserv.exe in you are on Windows) into the cgi-bin directory with name "radeswms".
And it is better to keep your mapfiles somewhere else than in the cgi-bin directory.

-Jukka Rahkonen-

> Hi,
> I'm using this line at the bottom of my httpd.conf file:

> SetEnvIf Request_URI "/cgi-bin/radeswms"
> MS_MAPFILE=/ms4w/Apache/cgi-bin/servemap.map
> to try to hide the map=servemap.map in my request URL.  It does not 
> seem to be working.  I keeps getting:
> Not Found
> The requested URL /cgi-bin/radeswms was not found on this server.
> I tried apache-restart but that did not seem to help.  Is there 
> anything else I need to do to make this take effect?

> Thanks,
> James


More information about the MS4W-Users mailing list