Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have just transferred my domain over to a new host so I could have a virtual server and more control.

Everything seems to work ok if I visit example.com but if I visit www.example.com I just get the IIS7 screen.

My settings for DNS have A records for both www and without pointing to the same ip address. I have a CNAME record for www pointing to example.com also

In IIS7 i have a website for named www.example.com, the app pool has the same name and the folder it uses also has the same name.

When I click test connection it has a warning for Authorisation saying cannot verify access to path.

I have 2 site bindings, one for the www prefix and one without. Both on port 80 and using the same IP address.

Is there a setting I am missing?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Sounds like your DNS is the problem. You describe having an A record for both www.example.... and also example.com as well as a CNAME, but you shouldn't need all of them. You should either have an A record for both names in which case a user hitting either name would be directed to the site by IP, or an A record for one and a CNAME for the other. If what you really want is to have all users hit www..... whether they type it or not, just setup the two A records (or A record/CNAME pair) and at the web server level create a redirect to so that any connections to example.com are redirected to www.example.com. The easiest way to do this is with a second website within IIS, but it can be done within the same site as well.

share|improve this answer
    
Also, is there any particular reason you have the binding specific to the DNS name? I mean it would work fine without that, it could simply be a misspelling in there that is causing you the problem at the moment. The only reason that I generally configure bindings with hostname is if I am creating multiple IIS site on the same server, but otherwise I leave it default for more flexibility in accessing the site. –  Charles Dec 2 '10 at 14:34
    
Thanks for the reply, I only just put the CNAME record in as the two A ones didn't work, I suppose I can take that out. I will check if there is a typo just now. I have 4 different domains on this server also. –  ddd Dec 2 '10 at 14:40
    
It was a typo. How stupid :) –  ddd Dec 2 '10 at 14:43

Your Answer

 
discard

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.