I’ve set up a reverse proxy on my router (DD-WRT and Pound) and configured a few subdomains that all works perfectly - except Home-Assistant. When the first login screen shows up everything seems fine, but after creating an admin account and trying to login there seems to be a redirect which fails and ends up with a page stating “404 - not found”.
I’ve been playing around with most parameters in [http] such as base_url, server_port, server_host, cors_allowed_origins, use_x_forwarded_for, trusted_proxies and trusted_networks but nothing seems to work and Home-Assistant doesn’t log anything
I haven’t enabled SSL yet since I want to start out without too much complexity.
This is my pound.cfg on DD-WRT (and as stated test.domain.com, test.domain.com, lorem.domain.com and ipsum.domain.com works perfect):
TimeOut 120
Alive 30
Control "/tmp/pound.ctl"
ListenHTTP
Address 0.0.0.0
Port 8080
xHTTP 3
Service "DD-WRT"
HeadRequire "^Host:[\t ]*DD-WRT$"
Backend
Address 192.168.1.1
Port 80
end
end
Service "ha.domain.com"
HeadRequire "^Host:[\t ]*ha\.domain\.com$"
Backend
Address 192.168.1.3
Port 8123
end
end
Service "test.domain.com"
HeadRequire "^Host:[\t ]*test\.domain\.com$"
BackEnd
Address 192.168.1.3
Port 8888
end
end
Service "lorem.domain.com"
HeadRequire "^Host:[\t ]*lorem\.domain\.com$"
Backend
Address 192.168.1.3
Port 8080
end
end
Service "ipsum.domain.com"
HeadRequire "^Host:[\t ]*ipsum\.domain\.com$"
Backend
Address 192.168.1.3
Port 443
end
end