Changeset 2518

Show
Ignore:
Timestamp:
11/07/03 10:47:07 (5 years ago)
Author:
dan
Message:

Added ASP script to hide mapfile path in onlineresource section (4.0 branch)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/branch-4-0/mapserver_docs/wms-server-howto.xml

    r2517 r2518  
    1616      </affiliation> 
    1717    </author> 
    18     <date>2003-07-29</date> 
     18    <date>2003-11-07</date> 
    1919    <abstract> 
    2020      <!-- a short description of the contents of the doc --> 
     
    2323          the use of MapServer v3.5 (and later).   
    2424      </para> 
    25       <para>Last Updated: 07/29/2003</para> 
     25      <para>Last Updated: 2003-11-07</para> 
    2626    </abstract> 
    2727  </articleinfo> 
     
    545545        But anyway, even if it's valid, the above URL is still ugly.  And you might  
    546546        want to use a nicer URL for your WMS Online Resource URL.  Here are some  
    547         suggestions, some of them will work only on Unix, but at least #2 will 
    548         work for Windows/Apache users as well. 
     547        suggestions: 
    549548      </para> 
    550549      <orderedlist> 
     
    589588            </listitem> 
    590589          </itemizedlist> 
     590        </listitem> 
     591       <listitem> 
     592          <para> 
     593            On IIS servers (Windows), you can use the following ASP script: 
     594          </para> 
     595          <programlisting> 
     596  &lt;% 
     597    Server.ScriptTimeout = 360 
     598    strRequest = Request.ServerVariables("QUERY_STRING") 
     599    strURL = "http://myserver/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\WMS\mymap.map&amp;" &amp; strRequest 
     600    Dim objHTTP 
     601    Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") 
     602    objHTTP.open "GET", strURL, false 
     603    objHTTP.send "" 
     604    Response.ContentType = objHTTP.getResponseHeader("content-type") 
     605    Response.BinaryWrite objHTTP.responseBody 
     606    Set objHTTP = Nothing 
     607  %&gt; 
     608          </programlisting> 
    591609        </listitem> 
    592610      </orderedlist>