码迷,mamicode.com
首页 >  
搜索关键字:nginx之身份验证    ( 1个结果
nginx之身份验证
1、安装httpd#yum-yinstallhttpd2、编辑nginx配置文件在配置中加入:location/{roothtml;auth_basic"loyu";auth_basic_user_file/etc/nginx/conf/password;}3、创建文件夹conf#mkdir/etc/nginx/conf/4、然后在nginx的conf目录下,执行:#cd/etc/nginx/conf/#htpasswd-cpassword..
分类:其他好文   时间:2015-08-15 06:51:16    阅读次数:117
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!