Technical Support

Virtual hosting with Microsoft Personal Web Server (PWS) / IIS

On Windows 95, 98, Me, NT4-Workstation, 2000-Professional
(Multiple web-sites with different domain names on the same IP address)


PWS does not support multiple web-sites directly like IIS on NT/2000-Server.

It does however support redirecting HTTP requests through ASP script, which provides a method for hosting multiple sites on the same IP address.

For example let say you have 3 domain names (dom1.com, dom2.com and dom3.com) and want to host a different web-site for each one.

First, in the web server root directory, create a sub-directory for each site.
For example:

   c:\inetpub\wwwroot\dom1
   c:\inetpub\wwwroot\dom2
   c:\inetpub\wwwroot\dom3

Place all the html, image, asp, etc. files for each web-site in the appropriate sub-directory.

Next in the web server root directory, create a default asp file
    c:\inetpub\wwwroot\default.asp

- with the following script code:

<%
   Select Case Request.ServerVariables("HTTP_HOST")
   Case "dom1.com", "www.dom1.com"
      Response.Redirect "http://www.dom1.com/dom1"
   Case "dom2.com", "www.dom2.com"
      Response.Redirect "http://www.dom2.com/dom2"
   Case "dom3.com", "www.dom3.com"
      Response.Redirect "http://www.dom3.com/dom3"
   End Select
%>

Modify the directory names and script code to match your domain names.
You should also add script code for error checking etc.

Each incoming HTTP request will now be redirected to the appropriate sub-directory.

PLEASE NOTE: Microsoft Personal Web Server (PWS) limits the maximum number of simultaneous connections, and thus may not be appropriate for busy web-sites.

For more information or to post questions or comments about the use of our products please visit our Online Support Forum.


Skip Navigation LinksHome > Legacy > Online Help > Help On: Virtual Hosting With PWS

Copyright ©MyServer.org, 2000-2017   All Rights Reserved
last modified: 4/18/2008 9:02:32 PM
Contact Us   |   Site Map   |   Login   |   Terms of Use   |   Privacy Policy
7/24/2017 9:55:29 AM