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 websockets
I have followd this guid Reverse Proxy with Apache 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.
<VirtualHost *:443>
ServerName ******.duckdns.org
ServerAlias home.*******.nrw
SSLEngine on
SSLCertificateFile /usr/local/apache2/conf/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/server.key
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
# Home Assistant WebSockets
ProxyPass /api/websocket wss://192.168.178.10:443/api/websocket
ProxyPassReverse /api/websocket wss://192.168.178.10:443/api/websocket
# Home Assistant HTTP
ProxyPass / https://192.168.178.10:443/
ProxyPassReverse / https://192.168.178.10:443/
</VirtualHost>
Maybe there is something wrong with your SSL config, but it’s really hard for me to find out without having the URL of your instance. Nevertheless, I advise not to post the URL publicly.
I fixed it, it was me that was stupid (as it usually is)
But if someone stubel on to this thread with the same problem.
Because i use letsencrypt to create my SSL it created new config files in apache
So i change my original file, and then the let’s encrypt generate ones overwritten it, and that’s why the changes didn’t work, so my config that is in the question works