Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm in the process of migrating a few sites from WS2003/IIS6 to WS2008/IIS7. Have been reading online material all day about WS2008 and IIS7. Still don't feel any smarter.

I put a basic test website in wwwroot (default web site directory) just to see if it would work and it did.

I've setup my multiple sites following these instructions:

I want to see if they are setup properly, so I was trying to view them at http:// ip_address/ virtual_directory_name as described here for WS2003/IIS6: http:// but I just get 404 errors back from IIS. (I'm a new user, so I had to break these links to get this to post)

It seems like I remember always creating virtual directories in IIS6. It's not clear to me whether you have to do this or if it's optional in IIS7 when creating a new site, so I tried it both ways, ie. creating a virtual directory under the new site or not creating the virtual directory. In either case, I still get the 404 errors.

Is it possible to view multiple sites on IIS7 via IPaddress/?? and if so, how?

share|improve this question
up vote 0 down vote accepted

You can host an unlimited number of sites and set the bindings that work for you.

If you have a dedicated IP, which I assume you do, just make sure that the Host Header field is blank. Then it will catch all traffic for that IP.

There are 3 binding choices for each IIS binding: a) IP address, b) port, c) host header. The port is the only required binding. If you set the host header, then it will only work for that specific host header. That's why if you want to use host headers, you'll usually need 2 for every domain. One for www and one without the www. However, for an IP test, just leave it off all together.

Virtual directories were common with WinXP which it only allows 1 site. You don't need to worry about vdirs for multiple sites unless you have specific needs for vdirs, or if you want a single site and domain name with subfolders. (i.e. would be a new site, while would be a new folder or vdir).

share|improve this answer
Thanks, Scott, for explaining this. I am now able to do a successful ip test after removing the host headers as you suggested and just using http:// my_ip_address:port_number_in_bindings. Thanks also for explaining the need for 2 for every domain if I use host headers. I was planning on using host headers once I got the dns re-mapped from the old server, and I wouldn't have known to setup multiple host headers to cover www and not. – Marvin Dec 7 '10 at 15:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.