Reverse Proxy and redirect issue

#1
I am trying to configure OpenLiteSpeed as a reverse proxy for a Pi-Hole server (in LAN).

Pi-Hole runs on 192.168.1.10 port 80.
The proxy domain I am using is pi-hole.example.com.

I've set up a virtual host in OLS (according to the documentation) pointing to pi-hole.example.com. I have also added an external app pointing to the web server 192.168.1.10, and added the external app in Context configuration for URI /.

However, the problem with Pi-Hole, it automatically redirects anyone visiting http://192.168.1.10 to http://192.168.1.10/admin. This does not work seemlessly for my OLS proxy configuration, and therefore Pi-Hole returns an error if I visit https://pi-hole.example.com.

I can open https://pi-hole.example.com/admin directly just fine (with no errors).

What can I do? I suppose I need something in my configuration redirecting anyone visiting https://pi-hole.example.com to https://pi-hole.example.com/admin.

Can anyone please point me in the right direction?

Thank you!
 
Top