[Solved] How do I redirect to a /path with Nginx Proxy Manager?
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 :)
location / {Â Â return 301 /admin;}location /admin {Â Â proxy_pass [url=http://<Pi-hole-IP>:<Pi-hole-Port>/admin;]http://<Pi-hole-IP>:<Pi-hole-Port>/admin;[/url]Â Â 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;}
Thank you for providing this, however when i now browse to pihole.mydomain.com it gives me a 404, and the URL is directed to pihole.mydomain.com/admin:8118. E.g. the port is somehow ending up at the end of the url haha.