Stop inheriting web.config from parent ASP.NET application in IIS 7.5

前端 未结 4 616
孤城傲影
孤城傲影 2021-01-02 03:22

We have deployed an ASP.NET Website (App 1) in IIS 7.5. Then under that application create another ASP.NET application (App 2). But in App 2, I don\'t want to inherit the

4条回答
  •  离开以前
    2021-01-02 03:55

    If you can deploy your child application to a separate website (same machine, different port), Application Request Routing may be able to help with this.

    The solution is similar to this post. First, install ARR. Then, configure your "child" application on a website that listens on a non-standard port. Next, configure a rewrite rule on the "parent" application's web site that matches the original path to the "child" application. Have this rule forward the request to the newly created website listening on the new port.

    I would post an example, but I expect it is fairly straightforward to see how this would work by looking at the post referenced above.

提交回复
热议问题