Is it possible to disable the default URL assigned to the azure web app

pleodev1 1 Reputation point
2020-12-28T11:52:04.527+00:00

Is it possible to disable the default URL

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,038 questions
{count} votes

2 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 14,711 Reputation points MVP
    2020-12-28T13:32:25.437+00:00

    @pleodev1

    I don't think you can turn off access to the website via [your cloud service name].azurewebsites.net domain.

    However what you could do is include a rewrite rule in your web.config, so that whenever someone tries to access your website via azurewebsites.net domain, they are automatically redirected to your custom domain.

    How to: Redirect the default *.azurewebsites.net domain to your custom domain on Azure Web Apps
    https://www.zainrizvi.io/blog/block-default-azure-websites-domain/

    Setup custom domain URL
    https://learn.microsoftcommunitytraining.com/docs/setup-custom-domain-url

    ----------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


  2. JoyDutt 826 Reputation points
    2020-12-29T13:44:25.62+00:00

    Hi @pleodev1 ,

    Yes, it possible to have custom domain url -- Ref:
    https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain

    (If the reply was helpful please don't forget to upvote and/or accept as answer, Thank You)

    Regards,
    J.D.

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments

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.