Taxick
(Thomas)
Setembro 13, 2024, 7:02pm
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
Setembro 13, 2024, 7:11pm
2
Others have suggested https://www.forcewww.com/ in similar questions
3 curtidas
Taxick
(Thomas)
Setembro 13, 2024, 7:40pm
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)
Setembro 13, 2024, 7:58pm
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)
Setembro 13, 2024, 8:00pm
5
Hi @MikeNolan
IPV4 - mysite.dk
IPv4 - www.mysite.dk
IPV6 - mysite.dk
IPv6 - www.mysite.dk
MikeNolan
(Mike Nolan)
Setembro 13, 2024, 8:01pm
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)
Setembro 13, 2024, 8:02pm
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
Setembro 13, 2024, 8:18pm
8
Communiteq is a Discourse partner and I also trust the people who recommend it here at Meta
2 curtidas
pfaffman
(Jay Pfaffman)
Setembro 13, 2024, 8:34pm
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 curtidas
I can say forcewww.com is reasonably safe. it is built and operated by Communiteq (communiteq is a trusted discourse hosting provider).
2 curtidas
Jagster
(Jakke Lehtonen)
Setembro 14, 2024, 8:27am
11
Is there some reason why this redirention can’t be done using Nginx?
pfaffman
(Jay Pfaffman)
Setembro 14, 2024, 10:05am
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)
Setembro 14, 2024, 10:13am
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)
Setembro 14, 2024, 10:15am
14
That’s not a simple matter for a novice.
Jagster
(Jakke Lehtonen)
Setembro 14, 2024, 10:19am
15
Quite few thing is easy and clear for novices
1 curtida
Taxick
(Thomas)
Setembro 14, 2024, 11:00am
16
Hi,
Thanks for all the replies. I did go with this solution: https://www.forcewww.com/
It seems to work fine
Thanks.
2 curtidas
system
(system)
Fechado
Outubro 14, 2024, 11:00am
17
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.