Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 quite a newbie question, but here it is anyway: one of our customers has a domain, e. g. which points to the customers website. This server is a apache webserver.

Now we have another server using IIS 7, where some .NET web app will be running. This .NET app is in a subdirectory of the windows webserver, e. g. C:\inetpub\wwwroot\my_app\

What I would like to have: a subdomain like points to C:\inetpub\wwwroot\my_app\ (no redirect or so, is the domain that the web app is using).

How can I setup the windows webserver to work that way? It should still be possible to host other apps on that server, too. Like: goes to C:\inetpub\wwwroot\my_anotherapp\ etc.

share|improve this question
up vote 2 down vote accepted

All you need to do is create another site in IIS for that subdomain, and point its root to the applications directory.

So create the site, set it's host headers to be that of the subdomain, set its root to the location of the app, setup .net the way you want it, ensure the subdomain is created in DNS and pointing to that server and your done.

share|improve this answer
That sounds pretty straightforward. Thanks! – Max Oct 1 '09 at 15:30

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.