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:
Whytey 2016-12-05 21:46:41 +10:00 committed by Fabian Affolter
parent 726d97e828
commit c5add9ffd0

View File

@ -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>