Taxick
(Thomas)
13.Сентябрь.2024 19:02:07
1
Привет.
Я новичок в Discourse! Я размещаю Discourse на своём сервере Ubuntu 24.04
Но мне нужна помощь с перенаправлением домена..
Если я перехожу на этот сайт: https:// mysite — он не работает..
Если я перехожу на этот сайт: https://www . mysite — всё работает отлично..
Так что вот мой вопрос. Можно ли перенаправить весь трафик с https:// на https://www
Надеюсь, кто-нибудь сможет помочь, причём простым способом для новичка
С уважением,
Томас
Moin
13.Сентябрь.2024 19:11:51
2
Others have suggested https://www.forcewww.com/ in similar questions
3 лайка
Taxick
(Thomas)
13.Сентябрь.2024 19:40:46
3
Hi.
Thanks
Are this safe??? Point my server to a random place… ???
Are there other ways to do it?
Where is the nginx configuration located?
MikeNolan
(Mike Nolan)
13.Сентябрь.2024 19:58:35
4
Is there a DNS entry for mysite or just for www.mysite?
Does your web server show any log entries for the mysite hits with an indication of why it failed?
Taxick
(Thomas)
13.Сентябрь.2024 20:00:25
5
Hi @MikeNolan
IPV4 - mysite.dk
IPv4 - www.mysite.dk
IPV6 - mysite.dk
IPv6 - www.mysite.dk
MikeNolan
(Mike Nolan)
13.Сентябрь.2024 20:01:15
6
What web engine are you using, it needs to know the equivalence as well.
I assume ping mysite and ping www.mysite both work.
What happens if you try to curl to the mysite URL locally?
Taxick
(Thomas)
13.Сентябрь.2024 20:02:14
7
Hi
Thanks for the reply..
I’m not sure what web engine I have used.
I just have followed this guide: discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub
Moin
13.Сентябрь.2024 20:18:20
8
Communiteq is a Discourse partner and I also trust the people who recommend it here at Meta
2 лайка
pfaffman
(Jay Pfaffman)
13.Сентябрь.2024 20:34:28
9
forcewww.com is the most noob-friendly way. I use it, and I have been a full-time consultant on Discourse since 2016.
The harder, and slightly more elegant way, is to add a second domain as described in Set up Let’s Encrypt with multiple domains / redirects .
3 лайка
I can say forcewww.com is reasonably safe. it is built and operated by Communiteq (communiteq is a trusted discourse hosting provider).
2 лайка
Jagster
(Jakke Flemming)
14.Сентябрь.2024 08:27:57
11
Is there some reason why this redirention can’t be done using Nginx?
pfaffman
(Jay Pfaffman)
14.Сентябрь.2024 10:05:54
12
It already does the redirects. The issue is that it doesn’t have a cert for the other site so if you visit the non www sir you get a certificate error
Jagster
(Jakke Flemming)
14.Сентябрь.2024 10:13:12
13
I see. But… that is just matter of so many times mentioned two -d flags when getting sertificates
What the heck I don’t understand now… I have to re-read this topic.
pfaffman
(Jay Pfaffman)
14.Сентябрь.2024 10:15:53
14
That’s not a simple matter for a novice.
Jagster
(Jakke Flemming)
14.Сентябрь.2024 10:19:27
15
Quite few thing is easy and clear for novices
1 лайк
Taxick
(Thomas)
14.Сентябрь.2024 11:00:03
16
Hi,
Thanks for all the replies. I did go with this solution: https://www.forcewww.com/
It seems to work fine
Thanks.
2 лайка
system
(system)
Закрыл(а) тему
14.Октябрь.2024 11:00:22
17
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.