[mapserver-users] How to hide the "?map=servemap.map" from URL under IIS

EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE james.evans.4 at us.af.mil
Sun Mar 30 07:02:12 PDT 2014


Hi Tamas,
I was able to get it working.  Thanks!  I'm not sure if I had to, but I installed the IIS 7 rewrite module, which doesn't come with IIS 7 by default, then was able to apply the following rewrite rule:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
           <rules>
              <rule name="Rewrite radeswms to mapserv.exe">
                 <match url="mapserver/radeswms" />
                 <action type="Rewrite" url="mapserver/mapserv.exe?map=content/servemap.map" />
              </rule>
           </rules>
        </rewrite>
    </system.webServer>
</configuration>

This is saved in the web.config in wwwroot directory.
Thanks,
James



________________________________
From: Tamas Szekeres [szekerest at gmail.com]
Sent: Friday, March 28, 2014 5:54 AM
To: EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] How to hide the "?map=servemap.map" from URL under IIS

James,

You may probably look into something like this:

http://stackoverflow.com/questions/3071936/getting-iis7-to-rewite-but-still-pass-querystring-parameters

Best regards,

Tamas





2014-03-28 7:55 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE <james.evans.4 at us.af.mil<mailto:james.evans.4 at us.af.mil>>:
Hi,
Can anyone point out the right way to alias my mapserver URL under IIS 7?  I'm not seeing it.
Thanks,
James
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140330/bab6c12d/attachment.htm>


More information about the MapServer-users mailing list