views:

920

answers:

2

I just got a Windows Server 2008 VPS and I'm having trouble getting IIS7 setup.

I created a new website in IIS with the path, ip address, and hostname (like 'www.nameofsite.com') and click OK. When I browse to the site it pulls up "http://www.nameofsite.com" in the browser and... nothing... IE cannot display this webpage.

If I blank out the hostname in the bindings and click [Browse] it works fine (it takes me to http://10.10.2.92 - the computer's ip). So entering the hostname breaks the website.

Any ideas on what I'm missing? Services I might not have running or roles I'm missing?

No server roles were initially installed on the VPS so I installed IIS, DHCP, DNS, and Application Server... overkill, but I wasn't sure what to install.

+1  A: 

First it has to be in DNS or the client machines hosts file. To test this you can add the hostname to the servers hosts file.

Go to start -> run and type "drivers" change to the etc directory you want to edit the hosts file. The entries in it are like a local DNS. They only work on the local machine!

Gary
I ended up talking to someone that said exactly the same thing. I set it up in DNS to point to my computer and it worked.I knew that I needed to set it up in DNS for it to work across the internet, but I mistakenly thought if I set the hostname and browsed to it on the same machine (without setting up DNS) it would work (on that machine). Ends up you have to give it some way to resolve the name (even though it is on the same box)... either through the machine's hosts file or DNS.Thanks for your help!
A: 

I have the same problem. You suggest the solution for it that works for local machine only. But how can I make my website accessible through that name as well....

Saad Khan