aaronk
28 Noviembre, 2020 09:57
1
Uso un servidor virtual de Host Europe. Tengo algunas preguntas sobre la configuración de DNS y SMTP.
Aquí están los ajustes de DNS:
Hostname Registro Dirección IP
forum.example.com A 178.77.99.191
¿Necesito una entrada CNAME? Si es así, ¿cuál es la entrada correcta?
He añadido una cuenta de correo postmaster@example.com para el 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
Después de iniciar Discourse, obtengo el mensaje de error de que el puerto 443 ya está en uso. Es cierto. ¿Cómo puedo solucionar este problema?
El puerto 443 ya está en uso, lo cual puede deberse a varias razones, incluido que otro servidor web ya esté ejecutándose en tu servidor.
Puedes verificar si es así con este comando:
netstat -alpn | grep 443
aaronk
28 Noviembre, 2020 11:13
3
El httpd se está ejecutando en el puerto 443. Este es el sitio web example.com . El foro debería ejecutarse en un subdominio forum.example.com . ¿Qué puerto debo usar?
Aquí está la salida de 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 -
Tendrás que seguir esta guía para configurar Discourse junto con 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…