Hi folks,
Just set up Nginx Proxy Manager + Pihole and a new domain with Porkbun. All is working and I have all my services service.mydomain.com
, however some services such as pihole seem to be strictly reachable with /admin at the end. This means with my current setup it only directs me to pihole.mydomain.com
which leads to a 403 Forbidden.
This is what I have tried, but with no prevail. Not really getting the hang of this so would really appriciate a pinpoint on this :)
@Sunny’ 🌻 that must not happen, did you remove the custom location from before? The above is working with my pihole setup
Ahhh i got it working now! Thanks a bunch for the help, been trying to get this to work for hours now hehe
Just tried this myself and mine does the same thing but I don’t have anything set in the custom locations tab. What did you do to resolve it?
Remove any custom locations (if u have tried to add any), and then simply copy paste this into the advanced tab. Dont forget to change the <IP+PORT>
location / {
return 301 /admin;
}
location /admin {
proxy_pass http://<YOUR IP:PORT>/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_set_header X-Forwarded-Proto $scheme;
}
Let me know how it goes :)