Subdomain on IIS

Rodney Ort 1 Reputation point
2021-04-16T13:40:53.673+00:00

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)

Internet Information Services
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 56,946 Reputation points
    2021-04-16T15:34:12.057+00:00

    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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.