When I try to install Discourse, I get this error every time:
DNS:
I’m using CloudFlare
I have searched many posts here but have not found a solution (that works for me).
I installed Apache2 because it runs the normal website.
Port 443 Accessibility Issue with Hostname
N0chteil is experiencing an error with Port 443 accessibility when trying to install Discourse using the hostname forum.rlv.link. The error occurs despite having Apache2 installed for the normal website.
itbhanusharma suggests that the issue might be due to Cloudflare’s proxy and recommends disabling Cloudflare optimization or editing the configuration file to disable Discourse’s built-in SSL. After attempting these steps, N0chteil asks about waiting periods and is advised to wait around 5 minutes for changes to take effect.
However, N0chteil still faces issues and is guided by itbhanusharma on configuring SMTP credentials for email servers.
pfaffman points out that using discourse-setup with existing Apache sites is not possible and shares a link to a relevant guide.
Ultimately, N0chteil resolves the issue by configuring Apache’s ports to 2053 and 444, allowing the use of discourse-setup with Cloudflare’s port settings.
If i ping the domain:
https://i.imgur.com/nFdEkUc.png
The issue is probably happening because of cloudflare proxy. You’ll have to disable cloudflare optimization by clicking orange cloud and making it grey on the DNS page in cloudflare for the given (sub)domain. If you’d rather have cloudflare, You’ll need to edit the configuration file manually to disable the discourse built in ssl.
Thanks, i try it. Should I expect certain “waiting periods”?
It should be immediate in most cases byt you can wait ~5 minutes after changes to be extra safe. You can ping your domain and as soon as it starts replying from your VPS IP address instead of cloudflare IP, you should be good to go.
What do I have to enter there or what does it mean?
![]()
Discourse need credentials for a SMTP (email) server in order to be able to send emails. More information about this is available here:
discourse/docs/INSTALL-email.md at main · discourse/discourse · GitHub
Not working. I get this error
![]()
what is the output of
netstat -alpn | grep 80

Then you can’t use discourse-setup. Have a look at How to set up Discourse on a server with existing Apache sites
I got it working. I set Apache’s ports to 2053 and 444, which only required me to configure Cloudflare’s entries with ports using Portzilla and I was able to use discourse-setup.