Question
June 18, 2009 at 03:28 AM
disarm

Multiple web sites on Server 2003 / hosts file

by disarm . Updated 15 years ago

Hi,

We are setting up four sites on Server 2003 for a client. All sites are e-commerce and have SSL’s installed.

On our server we’ve a DNS server which we edit with the IP addresses assigned to the SSL certificate. This server doesn’t have DNS and to see if the sites have been working we’ve had to map in the internal IP addresses in the windows hosts file, as in:

192.168.250.122 www.website.co.uk
192.168.250.122 website.co.uk

Which is the IP address assigned to the site in the IIS host headers.

Having these entries allows us to view the sites locally on the server to see them working.

Question is, once the domains for the sites are actually pointing at the server, what would the correct settings be in the hosts file?

I’m slightly confused as in the past I’ve only added items to the hosts file in order to block sites, ad servers, etc. So I’m not sure the relevance of the hosts file in this way.

Basically the sites are all running in IIS and I need to make sure it is all correct and ready to accept HTTP/HTTPS connections once the domains switch.

Any ideas or suggestions would be appreciated.

This discussion is locked

All Comments