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

I have a domain where I have created several subdomains. I manage to alter the DNS records, so a given subdomain redirects to a different server. For example? -> 

Now, my app is an ASP.NET MVC app responding to the following URL How do I configure IIS, that the url ->

points to my virtual directory app instead of the root.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

What version of IIS are you running? You'll need to setup host headers to accomplish what you want to do.



UPDATE Try this IIS 7 link

share|improve this answer
@Micheal I am running IIS7 and I could not find the settings there. Thanks for the links – gyurisc Jun 6 '11 at 7:30
The IIS 7 link is not working for me. – gyurisc Jun 6 '11 at 7:32
I had to add a new site in IIS7 with a new host header and then point it to my web app. It is now working perfectly. – gyurisc Jun 8 '11 at 6:58

In the IIS Manager right click on Sites, and choose Add Web Site... In the opened window:

  1. Choose a name for your application and write it under Site name
  2. Push the Select... button near the Application pool and choose ASP.NET v4.0
  3. Under Physical path browse for the web-app location (usually under c:\inetpub\wwwroot...). Remark: Usually when I push Test Settings... it doesn't work. But still the hole process works. So just be patient and keep tracking.
  4. In the Binding all you need to insert is your subdomain name ( under Host name.
  5. Push OK

That's it! Enjoy your new subdomain 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.