Using the HttpPlatform installer in a nested IIS application. RRS feed

  • Question

  • User-1643835564 posted

    Consider the following scenario:

    1. In IIS Manager, under Default website (or any other websites), create a nested application "test" (i.e. the root of your application will be test)
    2. In the web.config for the sub application, configure the http platform installer.

    If you visit http://localhost/test/ in your browser (the root of the child), then it tries to render the url /test/ from the proxied application.  Given that we're viewing the root of the application, I'd have expected it to proxy through to just / in the proxied application

    The use case here is scenarios in which the same code may be deployed to a full website, or to a sub application.  The current form means that the configuration of the http platform handler needs explicit knowledge of the path the code is deployed, which makes deployments more complicated.

    Two ways in which this could be fixed

    • Update the module so that it proxies the url relative to the application root, rather than the full path of the url.
    • Make the application root path avaialble in an environmental variable - that way we can handle the configuration through a set up script
    Monday, February 9, 2015 1:22 PM

All replies

  • User-1210239562 posted

    Agreed. I will investigate and see what we can do make this experience better.

    Monday, February 16, 2015 3:48 PM
  • User115148095 posted

    Hi there, I know this is an old post, but I am running into the same issue with trying to configure a nested HttpPlatformHandler application. Was there any momentum or workarounds for this issue?

    Thanks kindly,

    Wednesday, June 27, 2018 7:48 PM