'How to use a custom domain with a Azure Container App?
I created two Azure Container App inside an Container App Environment; Then they got URLs similar to this:
backend.agreeablehill-XYZABC.canadacentral.azurecontainerapps.io
my-container-app.agreeablehill-XYZABC.canadacentral.azurecontainerapps.io
Both of which have a static IP Address like this [2*.1**.2**.1**]
If I access the Web Browser on these URL the Apps respond the expected content and HTTP 200 OK
Then I accessed CloudFlare Panel for my domain and created two CNAME records on the DNS:
Type: CNAME
Name: backend
Content: backend.agreeablehill-XYZABC.canadacentral.azurecontainerapps.io
Type: CNAME
Name: app
Content: my-container-app.agreeablehill-XYZABC.canadacentral.azurecontainerapps.io
Now if I PING backend.mydomainxyz.com or app.mydomainxyz.com the DNS correctly resolves the domain to the static IP address. But If I open the URL in the Web Browser, then it gives an HTTP 404 ERROR
How to use a custom domain with a Azure Container App?
Update: "Not yet. Coming in next few weeks. For now you’d have to wrap with like API M or Azure front door to provide till then", Jeff Hollan.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
