WMS Server - URL question on IIS

Ed McNierney ed at TOPOZONE.COM
Tue Dec 7 16:36:33 PST 2004


Tanya -

That code needs to go wherever you want the resource to live - wherever
you want the URL to point.  If you saved it in the root of your Web
directory and you named it "obfuscate.asp" then your WMS URL might be:

http://www.mymapserver.com/obfuscate.asp

As Rich pointed out, IIS is normally configured to look for a file named
default.asp in a directory, and so it will automagically open that file
if you give IIS a URL that points to a directory.  Therefore, if you
saved this ASP code in the root of your Web directory and named it
"default.asp" as he suggests, you could use either:

http://www.mymapserver.com/default.asp OR
http://www.mymapserver.com

As your online resource URL.  Assuming, of course, that you replace
www.mymapserver.com with your server's name.

        - Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
Phone: +1 978 251-4242   Fax: +1 978 251-1396 

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of TC Haddad
Sent: Tuesday, December 07, 2004 5:52 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] WMS Server - URL question on IIS

this feels like a pretty ignorant question, but i'm not that familiar
with IIS, and i'm hoping someone can help. we have a Win2k IIS 5 box
which we have GetMap and GetCapabilities requests working on. now we're
interested in masking the URL a bit so it's a bit tidier. in the
WMS-How-To there is a ASP script provided (see below) - but where does
the script go in IIS if we want to implement this option? Any help would
be great, tanya

MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

ASP script example from WMSServerHow-To:

http://mapserver.gis.umn.edu/doc42/wms-server-howto.html#onlineresourceu
rl

  <%
    Server.ScriptTimeout = 360
    strRequest = Request.ServerVariables("QUERY_STRING")
    strURL = "http://myserver/cgi-bin/mapserv.exe?
map=C:\Inetpub\wwwroot\WMS\mymap.map&" & strRequest
    Dim objHTTP
    Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
    objHTTP.open "GET", strURL, false
    objHTTP.send ""
    Response.ContentType = objHTTP.getResponseHeader("content-type")
    Response.BinaryWrite objHTTP.responseBody
    Set objHTTP = Nothing
  %>



More information about the MapServer-users mailing list