Welcome! Log In Create A New Profile

Advanced

Re: Basic authentication

January 14, 2017 01:16AM
Thanks, i found it just above. It looks like this:

location ~* \.php {
fastcgi_pass unix:/run/php-fpm/php56-fpm.sock;
}

I would like to keep existing behavior (no user/passwd needed) except when clients try to execute php in /private... directory. Something like this:

location ~* /private*\.php {
satisfy any;
allow 192.168.1.0/24;
deny all;
auth_basic "Protected";
auth_basic_user_file conf/htpasswd;
}

BTW this is on a Synology NAS, there are about a dosen different config files so I want to ensure I don't break existing apps.
Subject Author Posted

Basic authentication

lacibaci January 13, 2017 04:42PM

Re: Basic authentication

Jim Ohlstein January 13, 2017 05:08PM

Re: Basic authentication

lacibaci January 14, 2017 01:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 243
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready