How to configure two websites to perform as the same top level domain,

Daniel noyn 1 Reputation point
2021-11-20T23:02:34.08+00:00

I have a blazor server side application hosted on windows in Azure and i would like to add a CMS, such as wordpress and then have everything in the CMS be under a single path similar to https://myapp.com/wordpress (or whatever) on one server, and my website on the other server.

Or if somehow possible, both of them on the same server.

Is it possible to configure the two sites so that they both respond to the url when appropriate?

Would it be better to do it like this? https://wordpress.myapp.com ?

or is either one even possible and if so can you provide a few links on this topic?
thanks

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,403 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,958 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,931 Reputation points
    2021-11-21T16:31:33.317+00:00

    You have two option to share the domain name.

    First host both sites with a virtual machine you can configure to host multiple web sites. Say a windows machine with IIS.

    Second is to use a loaded balancer with proxy support, like ngnix.

    You are probably better off using two domain names with common subdomain. Azure supports custom domain names. See

    https://learn.microsoft.com/en-us/azure/app-service/manage-custom-dns-buy-domain

    1 person found this answer helpful.
    0 comments No comments