Created
June 1, 2018 01:11
-
-
Save b13bs/c096e80233ea0757e78487e59d7449f3 to your computer and use it in GitHub Desktop.
Snippet of nginx's site config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# allow from LAN, deny from WAN | |
allow 192.168.1.0/24; | |
deny all; | |
# allow from LAN, basicauth from WAN | |
satisfy any; | |
allow 192.168.1.0/24; | |
deny all; | |
auth_basic "closed site"; | |
auth_basic_user_file /etc/nginx/htpasswd; | |
# basicauth from LAN, deny from WAN | |
allow 192.168.1.0/24; | |
deny all; | |
auth_basic "closed site"; | |
auth_basic_user_file /etc/nginx/htpasswd; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment