Welcome to Halil Demirezen's Tips and Tutorials Page
Personal
Home
Contact
Biography
Research

Projects
Tutorials
Celsus Library (TR)

Categories

LinuxNetworkComputer VisionDatabasesProgamming
vmware


NGINX: http auth with allow 2020-09-17 09:28:45

The configuration below allows any request
coming from 192.168.30.55 and requests password
from the rest.


satisfy any;
allow 192.168.30.55/32;
deny all;

auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;