microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
372 stars 29 forks source link

Feature Request: Custom domain redirects (301/302) #1324

Open vRune4 opened 4 weeks ago

vRune4 commented 4 weeks ago

Is your feature request related to a problem? Please describe.
My container app's customer domain is myapp.com. www.myapp.com should redirect to myapp.com.

The project contains a component that is licensed to serve only myapp.com. Pages served from www.myapp.com will inform users that I haven't bothered installing the license.

Describe the solution you'd like.
I would like to mark one of my custom domains as 'primary' and have the others respond with a 301 moved permanently.

Describe alternatives you've considered.
I will probably modify my project to perform a redirect from my code.

anthonychu commented 3 weeks ago

Thanks for the suggestion. Sounds like you're looking for something like the default domains feature in Azure Static Web Apps? We don't currently have plans for this in Container Apps. It's a good idea though and we'll evaluate it in the future.

vRune4 commented 3 weeks ago

Thank you @anthonychu. The default domains feature is exactly what I'm looking for. Would be nice to have something like that for us container-aficionados as well.