Link to home
Start Free TrialLog in
Avatar of E C
E CFlag for United States of America

asked on

Host header for IIS application folder (not root site)

I have a Windows Server running IIS with a default website.
The default website has 4 apps:

SERVER1
--- Default Web Site
-------- ABC
-------- App2
-------- App39
-------- AnotherApp

They are all bound to port 80 and so currently, they are accessed by their directory.
For example, to get to the app called App39, you would type this in your web browser >  http://server1.mydomain.com/App39

Rather than expose the server name, I'd like to have the URL look like a subdomain. In other words, instead of...
    http://server1.mydomain.com/App39
I would like to access the site like this ...
    http://App39.mydomain.com

In IIS you can edit the bindings (port number and/or host header) on the root site only. But how would I do it on an app and/or virtual folder?

I suppose I could just create a new site in IIS, use host header and call it a day. But reconfiguring these apps would be a nightmare so I was hoping there was a solution.
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

In IIS you can edit the bindings (port number and/or host header) on the root site only. But how would I do it on an app and/or virtual folder?

usually we will disable the Default Web Site and create the new ones for the websites. And each of it, we do the binding accordingly.

this article could be good for a starting point:

How to Create Website in IIS on Windows
https://tecadmin.net/create-website-in-iis/
ASKER CERTIFIED SOLUTION
Avatar of E C
E C
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial