Map subfolder of domain to azure app servive - azure

We have our primary website www.domain.com hosted on GoDaddy and its a WordPress website. We have now created a web app (MEAN stack app) and hosted it on azure app service. Its URL is appname.azurewebsites.net.
We would like the azure app service to be domain.com/app. Is it possible for me to map domain.com/app (a subfolder of our primary domain on GoDaddy) to the web app on azure app service.
After doing so; it should be like domain.com would load our WordPress website from GoDaddy and domain.com/app loads our web app from azure app service.
How do I accomplish this? Do I need to do some clever DNS settings?
Thanks in advance.

The /app is part of the path, not the domain, so DNS has nothing to do here. What you could do, is put something like Azure Front Door (AFD) in front. You domain.com will be linked to that Front Door.
In AFD you can then define two backends, one for your main website and one for your App Service
Then you create two routing rules:
Your main website, with path /*
You web app with path /app/*

Related

Reverse proxy subfolder to subfolder

We have a production website:
example.com (.Net / Hosted on Azure) IP address: 75.75.75.75
we want to publish some pages on our Wordpress website (IP: 85.85.85.85) but be available on our domain:
under here:
example.com/articles
We can do articles.example.com with a DNS A record but we need it to be as a subfolder, not a subdomain. Any ideas on how to achieve this?
To deploy Web App to a Sub-folder on Azure App service, you could add the virtual directory on the Azure app service via going to portal > your App Service > Configuration > Path Mappings > Virtual applications and directories. And add the following and click Save and restart the App Service.
Then you could publish your site's content with select Virtual Path and your app service, then you will access your sites with example.com/test.
For more information, you could read this1 and this2.

How do I create a Sub-domain and Sub-folder in Azure?

I have a bitnami wordpress in Azure.
I want to create a sub domain like subdomain.example.com.
I will install a new wordpress on this subdomain.
I want it on the same server.
I redirected my domain from Go Daddy to Azure. I have DNS Zone registration for example.com.
How is created subdomain in azure portal?
How can I creat folder for subdomain.example.com the same server?
(Note: Bitnami wordpress stack is available in server)
I'm assuming you're using App Service to host your sites. When you create your first Web Site, you must create an App Service plan. This plan can host multiple Web Sites so when you create your Web Sites, you simply need to select the previously created App Service plan. For each new Web Site, you must edit the DNS entries in GoDaddy and set the correct subdomain in the Web Site settings like you did for the first site.

How to add custom domain to azure app service with existing akamai edge hostname

We are trying to add a custom domain that integrates an Akamai edge hostname which we have already setup with our Azure App Service. The goal here is this mappping :
site.com -> site.com.edgekey.net -> site.azurewebsites.net
However in the App Service custom domain blade you can only go from :
site.com -> site.azurewebsites.net.
There is no way I can see that you can add the Akamai edge hostname. I've looked at the Azure CDN option but that only allows you to purchase CDN service from Azure, then integrate that into your App Service.
Is there a way to integrate an Akamai edge hostname into an Azure App Service custom domain?
As you know, we can add a root domain contoso.com or a subdomain www.contoso.com or a wildcard domain *.contoso.comin in the custom domain of web app service. You could follow this tutorial: Map an existing custom DNS name to Azure App Service
However, in this case, if you have custom domain site.com to the custom domain of web app service, you can add its subdomain sub1.site.com to the hostname. If you want to map site.com.edgekey.net -> site.azurewebsites.net you at least need a domain com.edgekey.net, then you can use a CNAME record name site in such domain com.edgekey.net to your web app service. I think it's impossible as the domain com.edgekey.net is not compatible.
If you want to use Azure CDN, Azure CDN support to add your custom domain to Azure CDN endpoint. You could view the details here. Let me know if you have any question.

In a linux shared hosting account content node app and Wordpress web, WordPress web using main domain and node app using a subdomain is it possible

I have a one hosting account and one domain with Wordpress hosted in it.I need to put Node.js base Expresss web application to subdomain.
Ex- www.abc.com = Wordpress website
app.abc.com = Node.js base Expresss web application.
Is it possible to do with one hosting account and one domain that i have?If it is possible how to configure the subdomain link to Expresss web application?
(my hosting account support multiple websites and it is a linux shared hosting account)

Have Subdomain point to a different azure address

I'm trying to setup my google domains to where "blah.net" points to my app in azure sites, but I want "dev.blah.net" to point to a different app on azure (My dev instance).
Anyone know how to setup this up? I tried doing subdomain forwarding but that didn't seem to work.
I'm trying to setup my google domains to where "blah.net" points to my app in azure sites, but I want "dev.blah.net" to point to a different app on azure
You could use A record for your root domain(blah.net) and CName record for your sub domain(dev.blah.net). Steps below are for your reference.
Get production web app IP address, pre-configured domain and dev web app pre-configured domains from Azure Portal.
Configuration A record, CName record and TXT record as following in Google domain management tool.
Add hostname for your product and dev app on Azure portal.

Resources