Update the A record for the domain(s) you want to redirect to original domain.
It helped and so am sharing. If somebody trying to change the A Record for the route domain. Don’t use * in the hostname but @ in the hostname of Digitalocean DNS management.
Why are you using digital ocean for DNS? It would be out recommendation to stick with your registrar’s DNS unless you’re looking to use specific features which require moving, such as Cloudflare or Route 53.
Not sure what’s the disadvantage of that. But the reason why i do it is using the registrar only for buying domain and leave that alone. Then manage everything in DO. Also their interface looks easy to manage multiple domains and setup.
If I redirect my naked domain example.com → www.example.com using the instructions here, I have problems with my ssl certificate not being valid when going to example.com.
If I use NakedSSL to redirect example.com → www.example.com. My cookies and therefore topics read seems to not display accurately.
What is the solution? I am using a docker install on digital ocean.
You must redirect to the “correct” form that you have certs for. Content cannot be at multiple domains simultaneously, that is a configuration error, and Google will ding you for duplicate content.
Ok. I did get it working using the instructions as above. As you said my certificate probably hadn’t completely switched from the naked domain to the www domain.
However, I still have issues with discourse not remembering what I have read when I return to the root of the site. If I go straight to the root, all messages are shown as unread until I follow the latest and top links. Any idea what may be causing this behaviour?
I suppose it works fine for you now; as the links mentioned are redirecting fine. I suppose you had to specify ssl_certificate and ssl_certificate_key. Can you please share your updated settings?
But visitors of hotelbobbygg.xyz get the certificate error (and can’t add exception either). I’ve even tried incognito mode.
I was wondering, in the path line (i.e. the line just next to ‘-file’), do I only need to give some name such as ‘some_name.conf’ or do I need to create that same named file ‘some_name.conf’ somewhere, under some /etc/path?
훌륭한 시작입니다. 그런데 제가 지금 겪고 있는 문제는, 도커 컨테이너 빌드에서 Let’s Encrypt가 루트 도메인(www 및 non-www)에 SSL 인증서를 발급하지 않기 때문에, 리다이렉트가 발생하기도 전에 브라우저에서 HTTPS 오류가 발생한다는 것입니다. 맞나요? 이 리다이렉트가 실제로 작동하도록 루트 도메인(www 및 non-www)에 SSL을 추가하는 방법은 무엇일까요?
현재 도메인 이름은 mydomain.tld1입니다. 재빌드 후 mydomain.tld1은 정상적으로 작동하지만, mydomain.tld2에 접근하려고 하면 ERR_CERT_COMMON_NAME_INVALID 오류가 발생하며, 그 반대도 마찬가지입니다(.yml 파일에서 tld1과 tld2를 교체해도).