I have an instance of Home Assistant server running on a linux server and I’m using a subdomain to access the application. I have no issues when accessing through the local ip address, but once I try with my domain name, I get to the login screen and once I try to login, I get :
I’m unable to get past this screen and I’ve searched for similar issues with no luck. I have this setup as https and http, but no luck with either. I’m not seeing any errors in the logs for this issue and that’s why I’m stumped. Any help is greatly appreciated.
Koying, Thank you for your response. Is there a certain way to do this in the yaml or in the Apache conf?
I have the trusted _proxies set in the configuration.yaml (ie: 192.168.1.0/24 and ::1). In the apache.conf file for this setup, I have RewriteEngine On and the RewriteCond %{HTTP:Upgrade} =websocket [NC] and the websocket modules are installed
# SSL Configuration
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/xxxxxxx.duckdns.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xxxxxx.duckdns.org/privkey.pem
SSLProxyEngine On
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyPreserveHost On
ProxyRequests Off
AllowEncodedSlashes NoDecode
ProxyAddHeaders On
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule ^/(.*) ws://192.168.1.x:8123/$1 [P,L]
ProxyPass / http://192.168.1.x:8123/ disablereuse=On flushpackets=on
ProxyPassReverse / http://192.168.1.x:8123/
ProxyAddHeaders On
RequestHeader set X-Forwarded-Proto "https"