Hey all I have a Homeassistant instance deployed using Hyper V VM (192.168.1.203). I have another webserver which is also a Hyper V VM running Apache2 (192.168.1.4)
This is my HA configuration.yaml on 192.168.1.203
http:
server_port: 80
use_x_forwarded_for: true
trusted_proxies:
- 192.168.1.4
- 127.0.0.1
- ::1
And this is my Apache2 virtual host on 192.168.1.4
<VirtualHost *:80>
ServerName home.example.org
ProxyPreserveHost On
ProxyRequests off
ProxyPass /api/websocket ws://192.168.1.203/api/websocket
ProxyPassReverse /api/websocket ws://192.168.1.203/api/websocket
ProxyPass / http://192.168.1.203/
ProxyPassReverse / http://192.168.1.203/
ProxyPass /api/websocket ws://192.168.1.203/api/websocket disablereuse=on
ProxyPass / http://192.168.1.203/ disablereuse=on
ServerSignature Off
</VirtualHost>
When using the above combination I am unable to use HA on my URL http://home.example.org
I get 400: Bad Request
on my browser and HA logs indicate the following
Logger: homeassistant.components.http.forwarded
Source: components/http/forwarded.py:114
Integration: HTTP (documentation, issues)
First occurred: 1:27:44 PM (1 occurrences)
Last logged: 1:27:44 PM
A request from a reverse proxy was received from 192.168.1.4, but your HTTP integration is not set-up for reverse proxies
Can anyone help me debug why things aren;t working?
I don’t intend to use SSL, and my webserver is using apache2 and I would like to stick to that over nginx or lighthttpd
Followed process here
But wasn’t able to get things to work
I’m also running pi-hole and if I setup home.example. org as a local DNS record there, things work.
Note: I am using example. org to mask my real domain. I am not actually using example .org anywhere!