Take the 2-minute tour ×
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?

app.domain.com -> 123.45.66.11 

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

http://app.domain.com -> 123.45.66.11/app

points to my virtual directory app instead of the root.

share|improve this question

1 Answer 1

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.

IIS 6 http://thelazyadmin.com/blogs/thelazyadmin/archive/2005/12/06/Configure-IIS-6.0-Host-Headers.aspx

IIS 7 http://technet.microsoft.com/en-us/library/cc753195%28WS.10%29.aspx

UPDATE Try this IIS 7 link http://www.dotnetscraps.com/dotnetscraps/post/Did-you-know-Add-host-header-to-a-Web-Site-in-IIS-7-IIS-75.aspx

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

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.