Adding a subdomain to an azure web app service

Tianxiang Gao 20 Reputation points
2023-06-14T17:53:50.5233333+00:00

Hello!

I have a few web apps hosted in azure, with the endpoint example.azurewebsites.net.

I'm trying to add a subdomain to that endpoint for another web app called examplepeter.azurewebsites.net.
The result endpoint would be peter.example.azurewebsites.net that would redirect to examplepeter.azurewebsites.net.

Are there any documents about that process? I have only found adding a subdomain to a custom domain like example.co, but none for subdomains within Azure.

Thanks!

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
775 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
0 comments No comments
{count} votes

Accepted answer
  1. AirGordon 7,150 Reputation points
    2023-06-15T07:54:16.99+00:00

    The azurewebsites.net domain is provided as a simple free dns & ssl solution, it doesn't support this scenario.

    I'd suggest;

    1. Buy a domain, and leverage custom domains to facilitate the configuration
    2. Leverage 2 regular azurewebsites.net domains in the two different apps
    3. Use one Web App, and create virtual directories for each app.
      examplepeter.azurewebsites.net/app1 and examplepeter.azurewebsites.net/app2
    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.