... |
... |
@@ -33,6
+33,12 @@ |
33 |
33 |
# Weiterleitung über HTTP |
34 |
34 |
ProxyPass / http://192.168.0.1/ |
35 |
35 |
ProxyPassReverse / http://192.168.0.1/ |
|
36 |
+ |
|
37 |
+ # Weiterleitung der WebSocket-Verbindung über WS |
|
38 |
+ RewriteEngine on |
|
39 |
+ RewriteCond %{HTTP:Upgrade} websocket [NC] |
|
40 |
+ RewriteCond %{HTTP:Connection} upgrade [NC] |
|
41 |
+ RewriteRule ^/?(.*) "ws://192.168.0.1:80/$1" [P,L] |
36 |
36 |
</VirtualHost> |
37 |
37 |
|
38 |
38 |
<IfModule mod_ssl.c> |
... |
... |
@@ -54,6
+54,12 @@ |
54 |
54 |
# Weiterleitung über HTTPS |
55 |
55 |
ProxyPass / https://192.168.0.1/ |
56 |
56 |
ProxyPassReverse / https://192.168.0.1/ |
|
63 |
+ |
|
64 |
+ # Weiterleitung der gesicherten WebSocket-Verbindung über WSS |
|
65 |
+ RewriteEngine on |
|
66 |
+ RewriteCond %{HTTP:Upgrade} websocket [NC] |
|
67 |
+ RewriteCond %{HTTP:Connection} upgrade [NC] |
|
68 |
+ RewriteRule ^/?(.*) "wss://192.168.0.1:443/$1" [P,L] |
57 |
57 |
</VirtualHost> |
58 |
58 |
</IfModule> |
59 |
59 |
{{/code}} |