question

RodneyOrt-5640 avatar image
0 Votes"
RodneyOrt-5640 asked lextm commented

Subdomain on IIS

I have an alias (cname) that I would like to redirect to a subfolder in IIS? on server19

In the past I thought I just converted it to a subdomain, I don't see that option?

I'm successfully making it at the main page by adding it to the bindings but I want the domain to go one folder deeper

I tried adding a vistual domain that pointed to the subfolder but then all of my data bindings did not work.

Forgive me I onll do this every 5 -8 years when we add a new server (for our internal site)

windows-server-iis
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

"I want the domain to go one folder deeper" cannot be done by DNS or site bindings. You have to redirect the browser to that folder (HTTP redirect or URL Rewrite).

0 Votes 0 ·

1 Answer

cooldadtx avatar image
0 Votes"
cooldadtx answered

A "subfolder" in IIS is either a virtual directory or an application. To bind a DNS name to it convert to a web app in IIS (I think virtual directories work too but haven't done that in years). Then edit the bindings for the application and specify the DNS name(s) you want to bind to. IIS will then automatically send any requests with the matching DNS name to the application. You can also specify a binding for the root site if you want.

Machine: myserver.company.org
Default Web Site (binding: *) ::= myserver.company.org
App1 ::= myserver.company.org\app1

Default Web Site (binding: web.company.org) ::= web.company.org
App1 (binding: app.company.org) ::= app.company.org


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.