[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
Tue Apr 1 10:33:35 PDT 2014


Tamas,
I just verified that the url rewrites in the web.config don't work unless
you actually install the rewrite module.  
James


-----Original Message-----
From: EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
Sent: Sunday, March 30, 2014 8:02 AM
To: Tamas Szekeres
Cc: mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] How to hide the "?map=servemap.map" from URL
under IIS

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>:


	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
	http://lists.osgeo.org/mailman/listinfo/mapserver-users
	


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6912 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140401/407d40cf/attachment.bin>


More information about the mapserver-users mailing list