nginx访问web界面验证
2016-11-30 15:43
183 查看
为了安全起见,部署的web内容不想让别人看到,或者为了增强安全性。
部署步骤:
首先利用apache的htpasswd功能生成一个用户名和密码:
部署步骤:
首先利用apache的htpasswd功能生成一个用户名和密码:
htpasswd -c /usr/local/nginx/conf/test.pass test New password:1234562.在nginx配置文件location中添加如下两行:
location / { root /usr/share; index index.php index.html index.htm; auth_basic "Authorized users only"; auth_basic_user_file conf/test.pass; }
相关文章推荐
- 通过nginx实现内网hadoop集群对外访问web界面
- Nginx web 网站访问限制登入验证
- 访问Web发生"无法验证数据"的错误
- 在IIS中使用Windows域服务器域摘要式身份验证对Web应用程序进行访问控
- WEB.CONFIG 实现 不同文件夹下 FORM验证的访问权限
- nginx禁止WEB通过IP访问
- Android webview访问HTTPS web page如何忽略验证
- 在Asp.Net2.0中可以方便的访问配置文件web.config,如判断debug设置,验证类型等。
- Nginx目录设置访问验证
- web.config 限定访问权限 Asp.net的身份验证有有三种
- Nginx+iptables屏蔽访问Web页面过于频繁的IP(防DDOS,恶意访问,采集器)
- Nginx+iptables屏蔽访问Web页面过于频繁的IP(防DDOS,恶意访问,采集器)
- 在IIS中使用Windows域服务器域摘要式身份验证对Web应用程序进行访问
- 为Trac安装基于Web表单登录验证界面的插件
- 怎么实现用户匿名访问web,但数据库要用Windows集成验证方式(数据库和web服务器分别在两台机器上)
- Asp.net的登录验证方法Web.config访问权限配置
- 简单得创建JAVASCRIPTE WEB丰富界面以及与JAVA服务互相访问
- web.config 限定访问权限 Asp.net的身份验证有有三种
- web.config验证访问页面当前用户是否有效
- nginx禁止ip访问web