From c5add9ffd064182348a9d79c5dbd7d1576ca1566 Mon Sep 17 00:00:00 2001 From: Whytey Date: Mon, 5 Dec 2016 21:46:41 +1000 Subject: [PATCH] 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 --- source/_cookbook/apache_configuration.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_cookbook/apache_configuration.markdown b/source/_cookbook/apache_configuration.markdown index 2855837a3b5..56f5c693921 100644 --- a/source/_cookbook/apache_configuration.markdown +++ b/source/_cookbook/apache_configuration.markdown @@ -30,6 +30,8 @@ To be able to access to your home assistant instance by using https://home.examp ProxyPreserveHost On ProxyRequests Off ServerName home.example.org + ProxyPass /api/websocket ws://localhost:8123/api/websocket + ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket ProxyPass / http://localhost:8123/ ProxyPassReverse / http://localhost:8123/ @@ -74,6 +76,8 @@ To access this instance by using https://countryside.example.org add to `/etc/ht ProxyPreserveHost On ProxyRequests Off ServerName countryside.example.org + ProxyPass /api/websocket ws://localhost:8123/api/websocket + ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket ProxyPass / http://localhost:8124/ ProxyPassReverse / http://localhost:8124/