zoukankan      html  css  js  c++  java
  • [php]apache的权限解释

    格式如下:

    <Directory d:/...>

      Order allow,deny

      Allow from all

      Allow from 127.0.0.1

      Deny from 110.0.0.1

    </Directory>

    解释:

    这段文档是对上文的d:/...目录的权限管理

    Order allow,deny是先允许所有ip访问,然后再拒绝,指定一种规则,先看allow然后再看拒绝

    Allow from all:允许所有ip访问

    Allow from 127.0.0.1:允许127.0.0.1访问

    Deny from 110.0.0.1:拒绝110.0.0.1访问

    结果:

    因此上边,先允许然后拒绝,没有一个Ip可以访问,接着看allow,allow from all和allow from 127.0.0.1是重合的允许全部,然后再看Deny from 110.0.0.1,因此最后的结果是除了110.0.0.1别的都可以访问

    2、

    <IfModule dir_module>

      #相当于主页设置

      DirectoryIndex new.html index.html index.htm index.php

      #站点别名

      Alias /myweb "d:/myweb"

    </IfModule>

  • 相关阅读:
    elasticSearch 查询 bool
    elasticSearch 查询 term
    elasticSearch 查询 match
    python re
    vue day1
    mysql 报错记录
    node.js vue.js 安装
    mysql 插入数据 ,存在跳过
    打印乘法口诀表
    初步使用分支、循环判断数字大小
  • 原文地址:https://www.cnblogs.com/fantasy01/p/4151071.html
Copyright © 2011-2022 走看看