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.

On my IIS 6 Server i have two sites:

Site 1: abc.def.com //Should respond only to header value abc.def.com
Site 2: 12.34.56.78 //Should respond if no host header matches

However it seems that site 2 always responds. I have created site 2 after sit one. How can i make Site 1 have priority?

share|improve this question

migrated from stackoverflow.com Jul 26 '09 at 19:03

This question came from our site for professional and enthusiast programmers.

2 Answers 2

Make sure the only entry in the Advanced Web Site Identification screen for Site 1 is exactly as follows:

IP Address: 12.34.56.78 TCP port: 80 Host header value: abc.def.com

The default entry (and any other entries) should be removed.

For Site 2, make sure that the default entry in the Advanced Web Site Identification screen is the only entry.

For both sites, the IP Address should be the same.

share|improve this answer

Site 1 should respond in your scenario. I would double-check the entries. Are you sure you are binding both to the same IP? (not All IP's or whatever) Also you could try to stop and restart IIS.

share|improve this answer

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.