nginx允许指定IP免密码访问页面,其他密码验证访问
2015-04-30 14:35
1081 查看
更多内容可移驾至我的独立Blog:
http://www.justfbt.com/
关键配置
server { #listen 80; ## listen for ipv4; this line is default and implied #listen [::]:80 default ipv6only=on; ## listen for ipv6 root /usr/share/nginx/phpmyadmin; index index.php index.html index.htm; # Make site accessible from http://localhost/ server_name localhost; location / { # First attempt to serve request as file, then # as directory, then fall back to index.html try_files $uri $uri/ /index.html; satisfy any; ### allow 192.168.xxx.xx; ### deny all; ### auth_basic "secret"; ### auth_basic_user_file /usr/share/nginx/xxx/passwd.db; ### # Uncomment to enable naxsi on this location # include /etc/nginx/naxsi.rules } location /doc/ { alias /usr/share/doc/; autoindex on; allow 127.0.0.1; deny all; }
相关文章推荐
- nginx中对指定的IP不使用密码对区域外IP使用密码访问
- Nginx如何设置拒绝或允许指定ip访问
- Nginx如何设置拒绝或允许指定ip访问
- Nginx IP访问控制,只允许指定的IP地址访问
- nginx 禁止访问配置,指定URL地址指定IP允许访问
- centos下nginx仅允许指定域名访问,不可用ip访问
- nginx禁止IP访问跳到指定页面
- Nginx如何设置拒绝或允许指定ip访问
- nginx 只允许指定IP访问
- nginx中对指定的IP不使用密码对区域外IP使用密码访问
- ASP只允许指定IP访问网站管理后台 黑客有帐号密码也没用
- windows2003允许指定IP访问
- 提防坏人:Nginx 拒绝指定IP访问
- nginx让用户通过用户名密码认证访问web页面
- nginx让用户通过用户名密码认证访问web页面
- 配置redis外网可访问,并只允许指定的ip可访问redis
- iptables只允许指定ip访问本机的指定端口
- Nginx+iptables屏蔽访问Web页面过于频繁的IP(防DDOS,恶意访问,采集器)
- nginx 访问默认index.html首页跳转指定页面
- nginx让用户通过用户名密码认证访问web页面