Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rickard Liljeberg 22 posts 112 karma points
    Oct 19, 2018 @ 13:44
    Rickard Liljeberg
    0

    Root node not found behind reverse proxy

    I am developing a site and have it behind an Application request routing proxy which forwards the request to the umbraco project and sets the "X-Forwarded-Host"

    To then make umbraco use that "X-Forwarded-Host" I have the following code. And as you can see from the watch at the bottom, everything seems correct.

    And this used to work until I upgraded to 7.12.3 today.

    Owin startup

    However if I now go to a controller (that overrides RenderMvcController) and there look at "Request.Url" it reports "http://ec-web.se:8788/"

    So it replaced the host but not the port. I have tried to replace LocalPort and setting port in Host (in the HeadersForwardOverrideMiddleware)

    However nothing seems to work.

    This also has the effect that it does not find my correct node (including root node - I have 3 root nodes). Instead it simply picks the first root node.

    How can I make it also respect the port I desire? I am also very open to another solution for configuring reverse proxy if there is a better way (rather than owin middlewhere)

  • Dale McCutcheon 21 posts 123 karma points
    28 days ago
    Dale McCutcheon
    0

    Hey Rickard,

    Did you ever get this to work? we are currently having the same issue.

    Thanks Dale

Please Sign in or register to post replies

Write your reply to:

Draft