[SOLVED] Apache reverse Proxy websocket | Apache websocket proxy
HiimtryingtobeabletoconnecttoHAfrommyowndomain,butihavesomeproblems.Icanreachtheloginpage,butafteriloginionlyget“UnabletoconnecttoHomeAssistant.”Ifilookintheconsoleiseethatigeta400onthewebsocket.SoithinkitsomthingwithmyvirtualhostconfigforwebsocketsIhavefollowdthisguidReverseProxywithApache[1]butwithoutsuccess.Mysetupisthatihavecomputerthatisconnectedtotheinternet,thenthatcomputerinturnuseproxytoHAthatisonaothermachine.Mycurrentconfigisnow
Hi im trying to be able to connect to HA from my own domain, but i have some problems.I can reach the login page, but after i log in i only get “Unable to connect to Home Assistant.”
If i look in the console i see that i get a 400 on the websocket.So i think it somthing with my virtual host config for websocketsI have followd this guid Reverse Proxy with Apache[1] but without success.
My setup is that i have computer that is connected to the internet, then that computer in turn use proxy to HA that is on a other machine.
My current config is now
<VirtualHost *:443> ServerName ha.domain.com serverAlias www.ha.domain.com ProxyPreserveHost On ProxyRequests off ProxyPass /api/websocket ws://192.168.1.XX:8123/api/websocket ProxyPassReverse /api/websocket ws://192.168.1.XX:8123/api/websocket ProxyPass / http://192.168.1.XX:8123/ ProxyPassReverse / http://192.168.1.XX:8123/ ErrorLog ${APACHE_LOG_DIR}/error-ha_page.log Cust...