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.
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)
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.
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)
Hey Rickard,
Did you ever get this to work? we are currently having the same issue.
Thanks Dale
We managed to get a fix implemented,
Let me know if anyone thinks it would be useful to share and i will share the solution.
Cheers Dale
Hey Dale!
Sorry for never getting back to you, I did have a peek in the code but have had so much to do so I never got around to digging up what we did.
I think it would be great if you posted your solution as I don't remember if I solved it or just did a workaround.
And besides, I am sore more people will have this issue at some point too!
//Rickard
is working on a reply...