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 (, and 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:


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

- with the following script code:

   Select Case Request.ServerVariables("HTTP_HOST")
   Case "", ""
      Response.Redirect ""
   Case "", ""
      Response.Redirect ""
   Case "", ""
      Response.Redirect ""
   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 ©, 2000-2022   All Rights Reserved
last modified: 4/18/2008 9:02:30 PM
Contact Us   |   Site Map   |   Login   |   Terms of Use   |   Privacy Policy
9/30/2022 6:14:59 PM