fixed some domain issues
All checks were successful
Deploy SingleChat / deploy (push) Successful in 24s
All checks were successful
Deploy SingleChat / deploy (push) Successful in 24s
This commit is contained in:
@@ -37,12 +37,11 @@ Die Apache-Konfiguration sollte bereits vorhanden sein. Stelle sicher, dass sie
|
||||
```apache
|
||||
<VirtualHost *:443>
|
||||
ServerName ypchat.net
|
||||
ServerAlias www.ypchat.net
|
||||
|
||||
# SSL-Konfiguration
|
||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||
SSLCertificateFile /etc/letsencrypt/live/www.ypchat.net/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/www.ypchat.net/privkey.pem
|
||||
SSLCertificateFile /etc/letsencrypt/live/ypchat.net/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/ypchat.net/privkey.pem
|
||||
|
||||
# Reverse Proxy zu Node.js
|
||||
ProxyPreserveHost On
|
||||
@@ -55,6 +54,17 @@ Die Apache-Konfiguration sollte bereits vorhanden sein. Stelle sicher, dass sie
|
||||
RewriteCond %{HTTP:Connection} upgrade [NC]
|
||||
RewriteRule ^/?(.*) "ws://localhost:4000/$1" [P,L]
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerName www.ypchat.net
|
||||
|
||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||
SSLCertificateFile /etc/letsencrypt/live/ypchat.net/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/ypchat.net/privkey.pem
|
||||
|
||||
RewriteEngine On
|
||||
RewriteRule ^ https://ypchat.net%{REQUEST_URI} [R=301,L]
|
||||
</VirtualHost>
|
||||
```
|
||||
|
||||
Wichtig: Die WebSocket-Rewrite-Regeln sind für Socket.IO erforderlich!
|
||||
|
||||
Reference in New Issue
Block a user