Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've got an App Service with Umbraco on Azure and it's using a proxy.
Everything works fine, except for when I call Request.Url.
Request.Url
The result is the url using the raw Azure domain (mywebsite.azurewebsite.net) and not the friendly domain I set up int the custom domains blade.
I also tried some redirects but it gives me a redirect loop because of the proxy I think.
If you access the website through browser with the friendly url everything's fine.
Does someone faced the same issue?
Thank you
@stefano, what reverse proxy are you using? Most likely you will need to override the host header on the backend, for AZFD have a look at https://docs.microsoft.com/en-us/azure/frontdoor/front-door-backend-pool#backend-host-header
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Azure website using proxy gives RAW domain when using Request.Url
I've got an App Service with Umbraco on Azure and it's using a proxy.
Everything works fine, except for when I call
Request.Url
.The result is the url using the raw Azure domain (mywebsite.azurewebsite.net) and not the friendly domain I set up int the custom domains blade.
I also tried some redirects but it gives me a redirect loop because of the proxy I think.
If you access the website through browser with the friendly url everything's fine.
Does someone faced the same issue?
Thank you
@stefano, what reverse proxy are you using? Most likely you will need to override the host header on the backend, for AZFD have a look at https://docs.microsoft.com/en-us/azure/frontdoor/front-door-backend-pool#backend-host-header
is working on a reply...