Copied to clipboard

Flag this post as spam?

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


  • MNCL 1 post 71 karma points
    Sep 02, 2020 @ 18:39
    MNCL
    0

    Multiple Domains with Azure Application Gateway

    We have a single Umbraco application deployed as an Azure App Service behind an Azure Application Gateway. The issue is accessing multiple domains when using the gateway. Both www.domain1.com and www.domain2.com have A records pointing to the Application Gateway.

    Domain1 is supposed to go to Site1 whereas Domain2 should go to Site2 which worked fine before we were using the Application Gateway.

    However, we are only able to serve the main site whenever anyone accesses it using the Gateway.

    Imagine a standard 1 listener -> 1 basic rule per domain. Each rule uses the same backend address pool of umbracoappexample.azurewebsites.net .

    I created a separate HTTP Setting within the Gateway for each domain so that requests to Domain2 are prefixed with /domain2root/ to become www.domain2.com/domain2root/* . This works for serving the pages, however the shared js/css/image resources return 404s.

    Does anyone have any experience with how this should be configured? I've also tried using a rewrite rule but I can't find any that help.

Please Sign in or register to post replies

Write your reply to:

Draft