Change order or ProxyPass in first example (#5185)

I was not able to login to Home Assistant till I change he Home Assistant config to place the Websocket reverse proxy info BEFORE the web UI info.  In the other order it loads, but never lets me log in.  If I reverse them, then I login just fine.
This commit is contained in:
apastuszak 2018-04-15 12:48:05 -04:00 committed by Fabian Affolter
parent a6795e584c
commit 429040954a

View File

@ -35,10 +35,10 @@ To be able to access to your Home Assistant instance by using https://home.examp
ServerName home.example.org ServerName home.example.org
ProxyPreserveHost On ProxyPreserveHost On
ProxyRequests off ProxyRequests off
ProxyPass / http://localhost:8123/
ProxyPassReverse / http://localhost:8123/
ProxyPass /api/websocket ws://localhost:8123/api/websocket ProxyPass /api/websocket ws://localhost:8123/api/websocket
ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
ProxyPass / http://localhost:8123/
ProxyPassReverse / http://localhost:8123/
RewriteEngine on RewriteEngine on
RewriteCond %{HTTP:Upgrade} =websocket [NC] RewriteCond %{HTTP:Upgrade} =websocket [NC]