[mapserver-users] URL redirection under IIS
Jeff McKenna
jmckenna at gatewaygeomatics.com
Mon May 4 06:39:58 PDT 2015
To add to Robert's steps on Windows:
For my Apache 2.4 installations on Windows, to allow the script to run
without an extension, I always add to httpd.conf:
Options +ExecCGI
SetHandler cgi-script
Require all granted
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 2015-05-03 6:37 PM, Robert Sanson wrote:
> Hi James
>
> The following works for Apache:
>
> 1. Copy your mapserv executable (mapserve.exe under Windows in the cgi-bin folder or make a symbolic link under Unix) and give it a different name (eg the name of your map file without the .map extension).
>
> 2. Edit your httpd.conf file and include something like the following:
>
> SetEnvIf Request_URI "/cgi-bin/mymap?" MS_MAPFILE=/mnt/gisdata/apps/service/mymap.map
>
> 3. Restart Apache
>
> Then you should be able to use the shorter form.
>
> Regards,
>
> Robert
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE
> Sent: Saturday, 2 May 2015 7:06 a.m.
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] URL redirection under IIS
>
> Hi,
> It's been a long time since I set up a mapserver, and I can't find my documentation on how to have the server answer up to a shortened URL. I would like it to respond to:
>
> http://servername/radeswms.exe&
>
> Instead of:
>
> http://servername/mapserver/mapserv.exe?map=c:\mapdata\servmap.map&
>
> Can someone remind me how to configure that using URL redirection? I'm on Server 2008 and IIS 7.
> Thanks,
> James
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list