Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
nginx [2009/05/25 00:35]
127.0.0.1 external edit
nginx [2010/06/20 21:39] (current)
93.103.1.78
Line 1: Line 1:
 +====== NGINX ======
 +
 +===== Restricted access with password + exclude IP list =====
 +
 +<​code>​
 +location / 
 + { satisfy any;
 +   allow 192.1.1.1; ​
 +   ​auth_basic "​Restricted"; ​
 +   ​auth_basic_user_file /​usr/​local/​nginx/​conf/​htpasswd;​
 +   deny all; 
 +
 +</​code>​
 +
 +
 +
  ​fastcgi_pass ​  ​unix:/​tmp/​fastcgi.socket;​  ​fastcgi_pass ​  ​unix:/​tmp/​fastcgi.socket;​
  
nginx.txt ยท Last modified: 2010/06/20 21:39 by 93.103.1.78
CC Attribution-Noncommercial-Share Alike 4.0 International
Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0 ipv6 ready