Hi,
I’m running HA behind an Apache (2.4) reverse proxy, configured like this:
<VirtualHost xxx.xxx.xxx.xxx:443>
ServerName hass.example.com
DocumentRoot /var/www/html
SSLEngine On
SSLCertificateFile [...]
SSLCertificateKeyFile [...]
SSLCertificateChainFile [...]
SSLCACertificateFile [...]
ProxyPass /api/websocket ws://localhost:8123/api/websocket
ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
ProxyPass / http://127.0.0.1:8123/
ProxyPassReverse / http://127.0.0.1:8123/
ProxyPreserveHost On
RewriteEngine On
</VirtualHost>
Since, I think, the 0.38 release, I quite often receive “Gateway Timeout” errors from the Apache instance when trying to load the HA web interface.
The error message appears instantly, no waiting for a timeout required.
I sometimes have to reload the page 10-15 times until the Web UI finally shows up.
Once it’s loaded, everything works perfectly, i.e. I don’t get those errors when switching tabs or switching controls in the UI and states of entities are updated in the UI.
Looking at the Apache error log, I see a lot of those messages:
[proxy_http:error] [pid 11160] (104)Connection reset by peer: [client xxx.xxx.xxx.xxx:53407] AH01102: error reading status line from remote server 127.0.0.1:8123
[proxy:error] [pid 11160] [client xxx.xxx.xxx.xxx:53407] AH00898: Error reading from remote server returned by /
Does anyone have an idea what’s causing this?
Sebastian