diff --git a/yourpart-https.conf b/yourpart-https.conf index 17a56cc..7ba23ec 100644 --- a/yourpart-https.conf +++ b/yourpart-https.conf @@ -30,10 +30,15 @@ ProxyPass "/ws/" "ws://localhost:2020/" ProxyPassReverse "/ws/" "ws://localhost:2020/" - # WebSocket-Upgrade-Header + # WebSocket-Upgrade-Header für Socket.io RewriteEngine on RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Connection} upgrade [NC] + RewriteRule ^/socket.io/(.*)$ "ws://localhost:2020/socket.io/$1" [P,L] + + # WebSocket-Upgrade-Header für Daemon-Verbindungen + RewriteCond %{HTTP:Upgrade} websocket [NC] + RewriteCond %{HTTP:Connection} upgrade [NC] RewriteRule ^/ws/(.*)$ "ws://localhost:2020/$1" [P,L] ErrorLog /var/log/apache2/yourpart.error.log @@ -49,7 +54,6 @@ SSLCertificateKeyFile /etc/letsencrypt/live/www.your-part.de/privkey.pem # www Redirect - RewriteEngine on RewriteCond %{SERVER_NAME} =your-part.de RewriteRule ^ https://www.%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]