DNS and Discourse

I use a virtual server from Host Europe. I have some question about the DNS and the smtp settings.

Here the DNS settings:

Hostname                  Record       IP Address
forum.example.com         A  

Do I need a CNAME entry? If yes which is the right entry?

I added an email account postmaster@example.com for the SMTP

DISCOURSE_SMTP_ADDRESS: mailout.example.com
DISCOURSE_SMTP_USER_NAME: postmaster@example.com

After the start of Discourse I get the error message that the port 443 is already in use. Yes it is true. How to fix this problem?

1 Like

Port 443 already in use could happen due to a number of reasons including another webserver already running on your server.

You can check if that’s the case by this command:

netstat -alpn | grep 443


The httpd is running on 443. This is the website example.com. The forum should run in a subdomain forum.example.com. Which Port I have to use?

Here is the output of netstat -alpn | grep 443

[root@vserver ~]# netstat -alpn | grep 443
tcp        0      0  *               LISTEN      28853/sw-cp-server: 
tcp        0      0    TIME_WAIT   -                   
tcp        0      0    TIME_WAIT   -                   
tcp        0      0    TIME_WAIT   -                   
tcp6       0      0 :::443                  :::*                    LISTEN      2517/httpd          
tcp6       0      0 :::8443                 :::*                    LISTEN      28853/sw-cp-server: 
tcp6       0      0    TIME_WAIT   -                   
tcp6       0      0    TIME_WAIT   -

You’ll have to follow this guide to set up discourse alongside apache2.