Taxick
(Thomas)
13 سبتمبر 2024، 7: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 سبتمبر 2024، 7:11م
2
Others have suggested https://www.forcewww.com/ in similar questions
3 إعجابات
Taxick
(Thomas)
13 سبتمبر 2024، 7: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 سبتمبر 2024، 7: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 سبتمبر 2024، 8:00م
5
Hi @MikeNolan
IPV4 - mysite.dk
IPv4 - www.mysite.dk
IPV6 - mysite.dk
IPv6 - www.mysite.dk
MikeNolan
(Mike Nolan)
13 سبتمبر 2024، 8: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 سبتمبر 2024، 8: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 سبتمبر 2024، 8:18م
8
Communiteq is a Discourse partner and I also trust the people who recommend it here at Meta
إعجابَين (2)
pfaffman
(Jay Pfaffman)
13 سبتمبر 2024، 8: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 إعجابات
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 Lehtonen)
14 سبتمبر 2024، 8:27ص
11
Is there some reason why this redirention can’t be done using Nginx?
pfaffman
(Jay Pfaffman)
14 سبتمبر 2024، 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 سبتمبر 2024، 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 سبتمبر 2024، 10:15ص
14
That’s not a simple matter for a novice.
Jagster
(Jakke Lehtonen)
14 سبتمبر 2024، 10:19ص
15
Quite few thing is easy and clear for novices
إعجاب واحد (1)
Taxick
(Thomas)
14 سبتمبر 2024، 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)
system
(system)
تم إغلاقه في
14 أكتوبر 2024، 11:00ص
17
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.