zoukankan      html  css  js  c++  java
  • http网站加密

    yum -y install httpd

    vim /etc/httpd/conf/httpd.conf

    ServerName  www.baidu.com

    <Directory "/var/www/html">
    authtype "basic"                                    #开启
    authname "haha"            #定义别名
    authuserfile "/var/www/html/pass.txt"    #指定网页根目录
    require user 用户名              #指定用户
    </Directory>

    service  httpd  restart

    #htpasswd  -c   /var/www/html/pass.txt   用户名

     注释:http访问规则:order,allow,deny(没有定义默认是最后一个单词)  order是有顺序的
            allow from IP地址
            deny from  IP地址

    大家一起来学习
  • 相关阅读:
    poj3122
    poj1323
    poj1328
    poj1700
    poj2586
    存储过程
    java基础3
    springmvc ---->helloworld
    选取下拉框,显示对应的图片
    java基础2
  • 原文地址:https://www.cnblogs.com/cuibobo/p/5345732.html
Copyright © 2011-2022 走看看