Setting up Virtual Hosts on IIS 5
To setup IIS 5 on Windows 2000 Server:
NOTE: Only IIS 5 on Windows 2000 Server and Advanced Server have virtual
host support. IIS on Windows 2000 Pro only supports one host.
- Open IIS management.
- Right click on your Windows domain and select New | Web
Site. This will open the Web Site Creation Wizard. (If your sites are
already configured skip to step 11)
- Type a description for your website and click Next.
- For the IP address leave this as default unless you need it bound to a
specific IP address.
- Set the port to the port that you need the site to listen on. This should
stay as 80 unless you need this to be changed.
- The Host Header option is how IIS knows which page to load. Here you will
need to enter your domain name. If your domain name is
mydomain.dns2go.com then enter mydomain.dns2go.com in this field. This will
load this page if a request is made to http ://mydomain.dns2go.com. If a
request is made to www .mydomain.dns2go.com it will not load this page. To
make this happen you will need to add another host header file for
www .mydomain.dns2go.com. Once the wizard is complete continue to step 11.
- Click Next.
- Select the path where the web pages will be located for this site. Click Next.
- On the Web Site Access Permissions screen, set the permissions
users who make a HTTP connection to this site will have. You will want at
least read and the rest will depend on what you have on the site.
- The wizard is finished and the site should now load when a request is made
to your domain.
- If your site has already been created and you need to change the
site so that is loads only to a request for your domain or to add a host
header, right click on the site and select Properties.
- On the Web Site tab click Advanced.
- Highlight the entry there already and click Edit or click Add
to create a new host header.
- This will bring up a window with fields to edit the IP address, port and
- Leave the IP address as the default unless you need to restrict the site
to one IP address.
- Set the TCP Port to 80 unless you need the site to listen on
a different port.
- Set the Host Header Name to be the name of the site you want to
load. (See step 6)
- Click Ok to return to the Advanced Multiple Web Site Configuration
- Click Ok to return to the properties for that site.
- Click Apply and Ok to save the settings.
- The site should now be set up to load the pages for all of the host header
names defined for that site.