Host multiple sites on IIS 7 and Windows Server 2008
May 10th, 2009
Hi there, this is how i host multiple web sites on my Windows Server Machine, using IIS 7.
Step 1: Edit hosts file to add fake names
- Open file “C:\Windows\System32\drivers\etc\hosts” by your favourite text processor. Remember that only Administrator have the right to edit this file. You can choose “Run as Administrator” when running text processor if you log in to the other users rather than Administrator.
- Go to the last line of “hosts” file and insert this line:
127.0.0.1 yourdomain.com

- Test the hosts file by going to cmd and ping yourdomain.com. If the reply is from loopback address, you have done this step.

Step 2: IIS 7 Configuration
- Create new Web Site with these following parameters:

Step 3: Configure your domain’s DNS
- Point @ address to your server’s IP.
Step 4: Congratulations, enjoy your website ![]()