Comment on How do I redirect to a /path with Nginx Proxy Manager?

<- View Parent
Sunny@slrpnk.net ⁨1⁩ ⁨month⁩ ago

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 :)

source
Sort:hotnewtop