aaronk
28. November 2020 um 09:57
1
Ich verwende einen virtuellen Server von Host Europe. Ich habe einige Fragen zu den DNS- und SMTP-Einstellungen.
Hier sind die DNS-Einstellungen:
Hostname Record IP-Adresse
forum.example.com A 178.77.99.191
Benötige ich einen CNAME-Eintrag? Wenn ja, welcher ist der richtige?
Ich habe ein E-Mail-Konto postmaster@example.com für den SMTP-Verkehr hinzugefügt.
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
Nach dem Start von Discourse erhalte ich die Fehlermeldung, dass der Port 443 bereits verwendet wird. Das stimmt auch. Wie kann ich dieses Problem beheben?
Port 443 ist bereits in Verwendung. Dies kann aus verschiedenen Gründen geschehen, beispielsweise weil bereits ein anderer Webserver auf Ihrem Server läuft.
Sie können dies mit dem folgenden Befehl überprüfen:
netstat -alpn | grep 443
aaronk
28. November 2020 um 11:13
3
Der httpd läuft auf Port 443. Dies ist die Website example.com . Das Forum sollte in einer Subdomain forum.example.com laufen. Welchen Port muss ich verwenden?
Hier ist die Ausgabe von 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 -
Du musst dieser Anleitung folgen, um Discourse zusammen mit Apache2 einzurichten.
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…