Pihole web GUI will not load behind reverse proxy (NPM) reddit / selfhosted ---------------------------------------------------------------------- RasenChidoriSS · 2023-11-15 14:36 GUI does not load behind reverse proxy Hi all, recently spun up Pihole via Docker and it works great! ...Except when accessing behind a reverse proxy. All GUI resources fail to load with a 502 error. I use Nginx Proxy Manager to proxy to [*pihole.local.mydomain.com*](https://pihole.local.mydomain.com) with the following configuration: location / { proxy_pass http://PiholeIP:PiholePort/admin/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_hide_header X-Frame-Options; proxy_set_header X-Frame-Options "SAMEORIGIN"; proxy_read_timeout 90; } location /admin { proxy_pass http://PiholeIP:PiholePort/admin/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_hide_header X-Frame-Options; proxy_set_header X-Frame-Options "SAMEORIGIN"; proxy_read_timeout 90; } The website is accessible, but no GUI elements are available. Has anyone run into a similar issue? I've reviewed a number of threads so far, but most of the issues seem to be about accessing Pihole from behind a reverse proxy at all, not that the GUI fails to load once accessing it. ---------------------------------------------------------------------- sebasdt · 2023-11-15 14:43 First off.. logs and what proxy are u using? ---------------------------------------------------------------------- RasenChidoriSS · 2023-11-15 14:46 Nginx Proxy Manager. The logs show no words in either NPM or Pihole. The only indication of an error that I get is a bunch of 502 errors on all styles and images. ---------------------------------------------------------------------- thekrautboy · 2023-11-15 15:29 Dont proxy `/admin`, proxy `/` instead. ---------------------------------------------------------------------- RasenChidoriSS · 2023-11-15 15:34 Asked r/pihole already, and unfortunately no luck. I figured a few smart minds here may have some troubleshooting steps as well, though I haven't asked r/nginxproxymanager yet. ---------------------------------------------------------------------- thekrautboy · 2023-11-15 15:38 > Asked r/pihole already, and unfortunately no luck. Plenty of good tips in there. https://www.reddit.com/r/pihole/comments /17v9arw/gui_does_not_load_behind_reverse_proxy/ ---------------------------------------------------------------------- RasenChidoriSS · 2023-11-15 15:51 This is where I originally got my nginx config boilerplate from. Another user in that thread is seeing the same issue I am, so I reached out, but they haven't found a solution either. I appreciate the links, but I'm only asking because I've done a good bit of research already. A lot of great resources - just none of them have worked for me so far. ---------------------------------------------------------------------- lytn1ng · 2023-11-15 21:08 If you open the developer tools in the browser (e.g. Chrome) and look at the console - are there any other error messages? Also check if any timeouts are being reported when the CSS and images fail to load. It's also possible that some security policy is blocking the loading of CSS and images. And again, the developer console could provide more info to resolve the problem.