Copied to clipboard

Flag this post as spam?

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


  • Stefano Beretta 102 posts 247 karma points
    Mar 11, 2022 @ 09:32
    Stefano Beretta
    0

    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

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Mar 14, 2022 @ 10:38
    Jeavon Leopold
    0

    @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

Please Sign in or register to post replies

Write your reply to:

Draft