Nginx Proxy Manager proxy specific path

I have a Custom Location set in Nginx Proxy Manager, but the problem is the URL is wrong when traffic is passed to it. I discovered here that the fix is a simple rewrite rule to change the end URL to match what the endpoint expects. Example:

rewrite ^/$ /admin/$1 break;

You add this rewrite in by hitting the gear to the right of the custom location.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.