Taxick
(Thomas)
13. September 2024 um 19:02
1
Hi.
I’m new to discourse! I’m hosting discourse on my Ubuntu 24.04 server
But I need help with domain forwarding…
If I go to this site: https:// mysite - It doesn’t work…
If I go to this site: https://www . mysite it works fine…
So now to my question. Can I forward all traffic from https:// to https://www
I hope someone can help me out, in a noob friendly way
Regards
Thomas
Moin
13. September 2024 um 19:11
2
Others have suggested https://www.forcewww.com/ in similar questions
3 „Gefällt mir“
Taxick
(Thomas)
13. September 2024 um 19:40
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. September 2024 um 19:58
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. September 2024 um 20:00
5
Hi @MikeNolan
IPV4 - mysite.dk
IPv4 - www.mysite.dk
IPV6 - mysite.dk
IPv6 - www.mysite.dk
MikeNolan
(Mike Nolan)
13. September 2024 um 20:01
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. September 2024 um 20:02
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. September 2024 um 20:18
8
Communiteq is a Discourse partner and I also trust the people who recommend it here at Meta
2 „Gefällt mir“
pfaffman
(Jay Pfaffman)
13. September 2024 um 20:34
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 „Gefällt mir“
I can say forcewww.com is reasonably safe. it is built and operated by Communiteq (communiteq is a trusted discourse hosting provider).
2 „Gefällt mir“
Jagster
(Jakke Lehtonen)
14. September 2024 um 08:27
11
Is there some reason why this redirention can’t be done using Nginx?
pfaffman
(Jay Pfaffman)
14. September 2024 um 10:05
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 Lehtonen)
14. September 2024 um 10:13
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. September 2024 um 10:15
14
That’s not a simple matter for a novice.
Jagster
(Jakke Lehtonen)
14. September 2024 um 10:19
15
Quite few thing is easy and clear for novices
1 „Gefällt mir“
Taxick
(Thomas)
14. September 2024 um 11:00
16
Hi,
Thanks for all the replies. I did go with this solution: https://www.forcewww.com/
It seems to work fine
Thanks.
2 „Gefällt mir“
system
(system)
Geschlossen,
14. Oktober 2024 um 11:00
17
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.