aaronk
28 Novembre 2020, 9:57am
1
Utilizzo un server virtuale di Host Europe. Ho alcune domande sulle impostazioni DNS e SMTP.
Ecco le impostazioni DNS:
Hostname Record Indirizzo IP
forum.example.com A 178.77.99.191
È necessario un record CNAME? Se sì, qual è quello corretto?
Ho aggiunto un account email postmaster@example.com per SMTP
DISCOURSE_DEVELOPER_EMAILS: 'forum@example.com'
DISCOURSE_SMTP_ADDRESS: mailout.example.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: postmaster@example.com
DISCOURSE_SMTP_PASSWORD: aUd34cdWKCu6CTjfoH7ykk
Dopo l’avvio di Discourse ricevo il messaggio di errore che la porta 443 è già in uso. È vero. Come posso risolvere questo problema?
Porta 443 già in uso può verificarsi per diversi motivi, incluso un altro server web già in esecuzione sul tuo server.
Puoi verificare se è questo il caso con questo comando:
netstat -alpn | grep 443
aaronk
28 Novembre 2020, 11:13am
3
L’httpd è in esecuzione sulla porta 443. Questo è il sito web example.com . Il forum dovrebbe essere eseguito in un sottodominio forum.example.com . Quale porta devo utilizzare?
Ecco l’output di netstat -alpn | grep 443
[root@vserver ~]# netstat -alpn | grep 443
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 28853/sw-cp-server:
tcp 0 0 178.77.99.191:8443 185.243.71.165:58504 TIME_WAIT -
tcp 0 0 178.77.99.191:8443 185.243.71.165:58482 TIME_WAIT -
tcp 0 0 178.77.99.191:8443 185.243.71.165:58514 TIME_WAIT -
tcp6 0 0 :::443 :::* LISTEN 2517/httpd
tcp6 0 0 :::8443 :::* LISTEN 28853/sw-cp-server:
tcp6 0 0 178.77.99.191:443 185.243.71.165:46544 TIME_WAIT -
tcp6 0 0 178.77.99.191:443 185.243.71.165:46542 TIME_WAIT -
Dovrai seguire questa guida per configurare Discourse insieme ad Apache2.
It’s not as daunting as it sounds!
While this may sound a bit intimidating at first, it’s really not all that bad. You basically need to do two things:
Install HAProxy (or an alternative) which will take over port 80 and then divert your Discourse traffic to your docker container, and all your other sites to your usual Apache set-up.
Let Apache know which port to listen for.
While this is only a rough guide, it should do a good job of pointing you in the right direction. Let’s get star…