[mapserver-users] map file paths
Richard Greenwood
richard.greenwood at gmail.com
Wed Nov 3 17:41:52 PDT 2010
On Wed, Nov 3, 2010 at 2:42 PM, David Hildebrand
<David.Hildebrand at afsc.ca> 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
richard.greenwood at gmail.com
www.greenwoodmap.com
More information about the MapServer-users
mailing list