nginx设置指定访问使用auth_basic
server { listen 80; server_name domain.com; location ^~ /test/ { auth_basic off; allow all; } auth_basic "登录"; auth_basic_user_file /path/aut
server { listen 80; server_name domain.com; location ^~ /test/ { auth_basic off; allow all; } auth_basic "登录"; auth_basic_user_file /path/aut
[scode type="yellow"]写在前面的话:就一句,这个东西千万千万千万(重要的话说三遍)小心,一不留神可能就导致系统瘫痪,很麻烦的,我这里是CentOS6.* x64的操作系统。[/scode]1.查看系统glibc支持的版本strings /lib64/libc.so.6 |grep GLIBC_2.下载安装包到http://www.gnu.org/software/libc/下载