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