mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Update apache.conf cookbook for websockets (#1544)
* Update apache.conf cookbook for websockets Add additional config lines as suggested in https://github.com/home-assistant/home-assistant/issues/4726#issuecomment-264812952 and tested to work on my install. * Updated to include websocket config in second example
This commit is contained in:
parent
726d97e828
commit
c5add9ffd0
@ -30,6 +30,8 @@ To be able to access to your home assistant instance by using https://home.examp
|
|||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
ServerName home.example.org
|
ServerName home.example.org
|
||||||
|
ProxyPass /api/websocket ws://localhost:8123/api/websocket
|
||||||
|
ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
|
||||||
ProxyPass / http://localhost:8123/
|
ProxyPass / http://localhost:8123/
|
||||||
ProxyPassReverse / http://localhost:8123/
|
ProxyPassReverse / http://localhost:8123/
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
@ -74,6 +76,8 @@ To access this instance by using https://countryside.example.org add to `/etc/ht
|
|||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
ServerName countryside.example.org
|
ServerName countryside.example.org
|
||||||
|
ProxyPass /api/websocket ws://localhost:8123/api/websocket
|
||||||
|
ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
|
||||||
ProxyPass / http://localhost:8124/
|
ProxyPass / http://localhost:8124/
|
||||||
ProxyPassReverse / http://localhost:8124/
|
ProxyPassReverse / http://localhost:8124/
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user