wsHost- Virtual hosting for winserver
wsSoftware (http://www.wssoftware.net)

NOTICE: This archive includes default.htm files for both the http folder and the http\public folder. Please back up your files before overwriting with these files.

Introduction:
While there are different ways of hosting more then one domain under winserver, wsHost makes setting up domains a breeze. The control panel design allows you to add, edit and remove hosts from the configuration easily. 

To perform the redirection we use a web based wcx that determines the host header and reads your configuration for that host. It then redirects accordingly.

Installation:
To install wsHost, just unpack the archive to your winserver install folder. All the files and folders will be put in the proper places.

Setup:
There is one configuration file needed to have wsHost run properly. This file is located at winserver_folder\wsSoftware\wsHost. The file is called settings.cfg, and if missing you will get a page describing how to set up the file.

Edit the settings.cfg file and add onle line at the beginning of the file. This line contains just the drive and folder path of your winserver install. For instance: c:\wc5\ or d:\wc6\.

Running wsHost:
To setup wsHost, just run the control panel program in your browser. eg: http://yourdomain.com/code/html-wsHost (NOTE: You must be logged on as the Administrator to run the control panel)

Create Your Default Host File:
In order to process all requests, the html-wsDefault.wcx file also known as the redirection script, requires an entry called the default Host. When a request comes in that doesnt match any of the configured hosts, this default will be called. This will generally be the same as your main winserver domain. But it doesn't have to be.

Each host file requires a public URL and a private URL. The default host file additionally requires the host header. If you only want to have a public URL, or only a private URL for a specific host, you can set both URLs the same. 

Create Additional Host Files:
Once you have created your default host file, you can begin creating hosts files for any other domains that point to your winserver machine (See DNS section later in this document). You will need to create one host file for each domain you wish to have winserver host. The host file accounts for both the www.domain.com and domain.com, so you only need one entry per domain name. If you have additional hosts setup in dns such as web1.domain.com, you will need a host file for that as well.

DNS:
You must have your DNS properly configured for each domain that you want winserver to host. For instance, if you have 2 domains you want winserver to host:
www.domain.com
www.anotherdomain.com
You would setup your DNS (A-Record) to have both domains point to your winserver machines IP address. Setting up up DNS entries is beyond the scope of this document, and this program.

wsSoftware: http://www.wssoftware.net
support@wssoftware.net

