Super User is a question and answer site for computer enthusiasts and power users. 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 Have two domains, is ok it will point to index.asp should point on index2.asp

The system is huge, that is reason why we are using existing asp scripts, we have migrated to new server and there was IIS 6 where you could set default document for each page, but in this IIS 7 I can't find an option.

Please help.

share|improve this question
Why not create multiple folders to host the individual sites and let host headers do their job? You can set the default documents on a per-site basis. And I think maybe even on a per-folder basis... – Tom Wijsman Sep 12 '11 at 18:58

Best solution -

Create two different sites in IIS and set the Host Headers in each for different domains with a different root path (c:\inetpub\site1 and c:\inetpub\site2) for example.

Workaround and easiest solution if the sites do not need to be isolated -

In your main domain, create a new default page called selector.asp which has the highest priority and copy the following:


site1www = ""
site1 = ""

if request.servervariables("SERVER_NAME") = site1www or request.servervariables("SERVER_NAME") = site1 then


end if

site2www = ""
site2 = ""

if request.servervariables("SERVER_NAME") = site2www or request.servervariables("SERVER_NAME") = site2 then


end if


This will look at the host header and redirect people to the correct page! Just change / for the address!

share|improve this answer

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.