[mapserver-users] Relative path's in mapfile

Jeff McKenna jmckenna at gatewaygeomatics.com
Wed Jan 25 11:11:21 EST 2012


On 12-01-24 10:16 PM, Richard Greenwood wrote:
>
> A more common and flexible approach is to set and environment variable
> in your Apache httpd.conf file, for example
>    SetEnv MYMAP   "C:/Files/apps/demo/demoCV.map"
> Those are forward slashes not back slashes even though it's Windows.
> And your URL is now
>    http://localhost:80/cgi-bin/mapserv.exe?map=MYMAP
> This is considered to be more secure because you are not exposing your
> file system path to the public.
>

As Rich noted, those little tricks are very useful - personally I am 
constantly referred to the docs for this to use on my client's machines: 
http://www.mapserver.org/ogc/wms_server.html#changing-the-online-resource-url

Keep that link handy! :)

-jeff




-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




More information about the mapserver-users mailing list