Ändere WebSocket-Proxy-Konfiguration in Apache und Frontend: Aktualisiere die Ports für Daemon-WebSocket-Verbindungen von 2020 auf 4551. Dies verbessert die Konsistenz der Verbindungen und stellt sicher, dass die richtigen Endpunkte verwendet werden.
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
ProxyPassReverse "/socket.io/" "http://localhost:2020/socket.io/"
|
||||
|
||||
# WebSocket-Proxy für Daemon-Verbindungen
|
||||
ProxyPass "/ws/" "ws://localhost:2020/"
|
||||
ProxyPassReverse "/ws/" "ws://localhost:2020/"
|
||||
ProxyPass "/ws/" "ws://localhost:4551/"
|
||||
ProxyPassReverse "/ws/" "ws://localhost:4551/"
|
||||
|
||||
# WebSocket-Upgrade-Header für Socket.io
|
||||
RewriteEngine on
|
||||
@@ -39,7 +39,7 @@
|
||||
# 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]
|
||||
RewriteRule ^/ws/(.*)$ "ws://localhost:4551/$1" [P,L]
|
||||
|
||||
ErrorLog /var/log/apache2/yourpart.error.log
|
||||
CustomLog /var/log/apache2/yourpart.access.log combined
|
||||
|
||||
Reference in New Issue
Block a user