nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Access Lists on custom location paths

Open Bahama03 opened this issue 5 months ago • 6 comments

Hello,

While implementing Proxy Manager and migrating from Apache Reversed Proxy (which are all configuration files built and referred to in sites files) I came across the following configuration I use and miss in Nginx Proxy Manager;

Most of the websites are public, while others have the need to use basic HTTP Auth or an access list. This is already possible on a domain and works like a charm. Now there are some websites which are public, but some subdirectories or subfiles on a website should be protected by auth or acl. Simple example: Wordpress websites should be public, but the wp-admin and/or wp-login.php sub url should be restricted by IP. In Apache I named a separate location and defined the allowed IP ACL. In proxy manager this is not yet possible, since I can't define a proxy host (e.g. example.com/wp-admin), I can only define domain names (e.g. domain.com (without something after the /)). I can define custom locations for various paths but it is not possible to define a ACL for the specific path. I am not a programmer, but I would very much like to have the option to be able to select a ACL list on a custom location (subdirectory).

Does anyone have any input? Thanks

Regards, Thomas

Bahama03 avatar Aug 11 '25 10:08 Bahama03

I currently add a custom location and specify whatever access control I need. Here's an example:

Image

However, I don't like this approach. I would much prefer the ability to use access lists on subdirectories. as @Bahama03 describes.

aerickt avatar Aug 17 '25 23:08 aerickt

I currently add a custom location and specify whatever access control I need. Here's an example: Image

However, I don't like this approach. I would much prefer the ability to use access lists on subdirectories. as @Bahama03 describes.

How are you seeing the window at the bottom of the custom locations tab where you can enter allow/deny rules? I'm on the most current version of NPM and I don't have that field?

Image

fvultee avatar Aug 19 '25 19:08 fvultee

@fvultee Press the gear icon.

aerickt avatar Aug 20 '25 00:08 aerickt

@fvultee Press the gear icon.

Wow, I must have been tired, it's literally right in front of me...

fvultee avatar Aug 20 '25 13:08 fvultee

@fvultee Press the gear icon.

Wow, I must have been tired, it's literally right in front of me...

I had to do some research and came across this issue to see this icon as well. You’re not alone.

However, being able to use the access list from there would be a great addition.

BenoitSafari avatar Nov 10 '25 13:11 BenoitSafari

@fvultee Press the gear icon.

Wow, I must have been tired, it's literally right in front of me...

I had to do some research and came across this issue to see this icon as well. You’re not alone.

However, being able to use the access list from there would be a great addition.

Well at least we can put the details of an ACL under the icon and get the same effect, but you're right it would nice to just be able to select a predefined ACL.

fvultee avatar Nov 10 '25 16:11 fvultee