point subdomain to (sub-) directory on IIS 7

Posted by Max on Server Fault See other posts from Server Fault or by Max
Published on 2009-09-30T06:22:50Z Indexed on 2011/01/12 8:55 UTC
Read the original article Hit count: 149

Filed under:

I have quite a newbie question, but here it is anyway: one of our customers has a domain, e. g. examplecustomer.com 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 app.examplecustomer.com points to C:\inetpub\wwwroot\my_app\ (no redirect or so, app.examplecustomer.com 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: anotherapp.examplecustomer.com goes to C:\inetpub\wwwroot\my_anotherapp\ etc.

© Server Fault or respective owner

Related posts about iis7