Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1789 Widoki

I'm using Azure for my DNS because I already have my email records set up there.

I've configured a CNAME record www.domain.com to point to myodoodomain.odoo.com and it's working.

Now I'd like to configure the naked domain (domain.com) to redirect to www.domain.com.

Azure doesn't have the ability in their DNS service to handle the redirect, and I can't afford to pay $35 US per month at this point to use Azure Front Door.

Does anyone have advice for setting up the redirect, possibly with an Azure Function or Static Web App?


Alternatively, I would consider having odoo host the domain and handle the dns, but I haven't found any details on whether I could configure the dns records I need for email, or how much the dns hosting is per year after the first free year.

Thanks!

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thanks Ernesto!

I took a look at Gandi's services and though it's a bit more expensive than my current DNS registrar, will try switch to Gandi if I can find some instructions for doing so.

That said, I did find a solution to do the redirect for me:
I created a new Azure Web App using this container: 
https://hub.docker.com/r/morbz/docker-web-redirect/

All I had to do was set one environment variable and the container is now redirecting domain.com to www.domain.com.

I've got it running on the free tier for now, but need to watch it over time to see if there are noticeable cold-start issues.

Awatar
Odrzuć
Najlepsza odpowiedź

Unfortunately this is very specific to replicate  by myself as I do not use Azure. But since the domain Odoo is providing is hosted by Gandi, maybe we can consider their DNS service, which is included in the domain cost.


DNS with simplified automation and interoperability - Gandi.net

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lut 24
1983
1
kwi 24
2198
0
mar 24
1123
3
lip 24
16466
1
lut 23
2041