Azure front door keeps it's domain name

Matthew Jung 105 Reputation points
2023-08-09T05:40:01.1166667+00:00

Hello.

I am currently utilizing Azure Front Door to distribute traffic across three VMs, each running a web service with Nginx and the Laravel framework. When I access the service through the provided azurefd.net domain from Azure Front Door, the traffic is correctly distributed to the backend servers. However, I don't want a specific server's IP address to be exposed in the browser's address bar. Regardless of which backend server is serving the request, I wish for the URL to always appear as azurefd.net/any/path. Please guide me on any configurations or settings that might achieve this desired behavior.

So far, I've undertaken the following actions:

  • Nginx Configuration Check: There are no settings related to redirects, returns, or rewrites.
  • Laravel .env Modification: I've set the APP_URL to http://myazurefd.azurefd.net.
  • PHP app.php Modification: I've updated the 'url' setting to env('APP_URL', 'http://myazurefd.azurefd.net').

Despite these changes, the issue remains unresolved. Is it possible for using custom domains only?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
857 questions
{count} votes

Accepted answer
  1. Q&A Assist
    2023-08-09T05:40:01.12+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To achieve the desired behavior of always displaying the Azure Front Door domain name in the browser's address bar, you need to configure a custom domain for your Azure Front Door instance. After creating a custom domain, you can map it to the default frontend host of your Azure Front Door instance. This way, when Azure Front Door delivers content from your backend, it will use your custom domain name instead of the default azurefd.net domain name.

    You can follow the steps outlined in the "Configure a custom domain on Azure Front Door using the Azure portal" documentation to set up a custom domain for your Azure Front Door instance. Once you have completed the configuration, you should be able to access your web service through your custom domain name, and the URL will always show your custom domain name instead of the backend server's IP address.


    References:

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.