nginx添加访问控制htpasswd及status配置
来源:互联网 发布:免费杀毒软件知乎 编辑:程序博客网 时间:2024/05/01 02:51
下載ngx_http_stub_status_module模塊,
./configure --with-http_stub_status_module
配置status状态配置文件
vi status.confserver_name status.abc.cn;location{ stub_status on; #<==打開狀態信息開關 access_log off; root /html/status; index index.html; auth_basic “abc login”; //用於設置認證提示符“” auth_basic_user_file /application/nginx/conf/htpasswd#<<== nginx conf放置密码的目錄路勁}
yum install -y httpd #<==安装htpasswd
which htpasswd
/usr/bin/htpasswd
配置htpasswd账户
htpasswd -bc /application/nginx/conf/htpasswd(nginx的安裝路勁) oldboy 123456
chmod 400 /application/nginx/conf/htpasswd
chown nginx /application/nginx/conf/htpasswd
nginx -t
访问status.abc.cn即可
0 0
- nginx添加访问控制htpasswd及status配置
- Nginx添加htpasswd认证
- Nginx 访问控制配置
- 利用htpasswd给nginx加访问密码
- Nginx中使用htpasswd配置Http认证
- nginx rtmp配置访问控制
- Nginx状态信息(status)配置及信息详解
- Nginx+htpasswd+PHPpgadmin
- nginx htpasswd在线生成器
- nginx配置访问控制、rewrite应用、nginx代理
- Nginx 访问控制
- nginx的IP访问控制及用户认证
- Nginx htpasswd 身份验证 密码验证
- 使用apache htpasswd生成加密的密码文件,并使用.htaccess控制目录访问
- .htaccess .htpasswd 访问密码设置
- nginx https 测试 及status模块
- nginx-status开启及参数说明
- apache,nginx及tomcat中配置SSL双向访问
- Nginx+tomcat配置集群负载均衡
- 读写锁------进程的同步与互斥
- apk内置到系统的方法
- enter键登录提交
- Unity3D引擎之渲染技术系列五
- nginx添加访问控制htpasswd及status配置
- MYSQL 查询包含某个数据表的所有存储过程
- rxtx+smslib java控制短信猫
- 90%的人死在了大学里,只不过八十岁才埋
- QWR3
- 文章标题 CSU 1832: Jump(DP)
- 根据textView的宽度自动伸缩字体的size
- 4D Result :iBET iPHONE7 Plus Red Lucky Draw(4D Lucky Draw,4d result,4D Result Lucky Draw,4D Result m
- uio的UIO_MEM_PHYS/UIO_MEM_VIRTUAL/UIO_MEM_VIRTUAL 的区别