On Wed, Nov 3, 2010 at 2:42 PM, David Hildebrand <[email protected]> wrote: > Is there a way of abbreviating pathnames to the map file? For instance, my > URL to produce a map is > > > > http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.map&mode=map > > > > In my apache configuration file I have > //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased to > /test/ but the alias does not seem to work with CGI. I’m just wondering if > there is a workaround so that I don’t need to specify the whole file path in > my URL. > > > > Thanks. > > =========================== > David V. Hildebrand > Agriculture Financial Services Corporation > (403) 782-8239
In your Apache httpd.conf add: SetEnv MY_MAP "C:/path/to/my/mapfile.map" and then your URL can be: http://localhost/cgi-bin/mapserv.exe?map=MYMAP&mode=map Shorter URL, better security. Rich -- Richard Greenwood [email protected] www.greenwoodmap.com _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
