Comment on How do I redirect to a /path with Nginx Proxy Manager?
sjh@sh.itjust.works 1 month ago
Hey there!
Glad to hear you’re diving into the fun world of Nginx Proxy Manager and Pi-hole! It’s super cool once you get past the initial hurdles. So, for your issue, let’s try and simplify things a bit.
First, you’ll want to create a new proxy host for pihole.mydomain.com
and then set up a redirect rule. Here’s a quick rundown on how you can do that:
-
Create a new proxy host:
- Go to the ‘Hosts’ tab.
- Click ‘Proxy Hosts’ then 'Add Proxy Host.'
- Enter
pihole.mydomain.com
in the domain name field.
-
Set up a redirection:
- Under the ‘Advanced’ tab, add this in Custom Nginx Configuration:
location / { return 301 /admin; }
- Under the ‘Advanced’ tab, add this in Custom Nginx Configuration:
-
Watch the magic happen!
- Click save and your configuration should now redirect
pihole.mydomain.com
topihole.mydomain.com/admin
.
- Click save and your configuration should now redirect
If this doesn’t work right away, you might need to clear your browser’s cache or double-check that your DNS settings are pointing to the right place. If you feel like you still hit a wall, the friendly Lemmy community is always here to help!
You’ve got this—happy troubleshooting!