zoukankan      html  css  js  c++  java
  • 提示You don't have permission to access /index.php on this server.

    被坑了,Apache多站点配置,本来配置的很正常的,结果电脑重装以后在配置结果就不行了,查了n久还是不行,但最后还是找到原因了.

    httpd.conf 中这样的

    <Directory />
    AllowOverride none
    Require all granted
    </Directory>

    改成下面这段

    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    allow from all
    </Directory>

    还有一处地方,就是这个地方找了n久,大家如果出现上面改了还是403的话,下面这段也改改看吧.

    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    Allow from ::1
    Allow from localhost
    </Directory>

    改成下面这段

    Order Deny,Allow
    allow from all
    Allow from 127.0.0.1
    Allow from ::1
    Allow from localhost
    </Directory>

    最主要的就是Deny from all 这玩意,改完后在看看有没有这个玩意了,有就把它改成allow from all这个基本就可以了.

  • 相关阅读:
    mysql实战45讲
    goland破解
    主从复制系列C
    主从复制系列B
    主从复制系列A
    sshd配置文件详解
    MySQL源码 数据结构array
    MySQL源码 information_schema新增表
    MySQL5.6 基于db的并行复制
    mysql 限制并发select patch
  • 原文地址:https://www.cnblogs.com/chenzhaojx/p/4112291.html
Copyright © 2011-2022 走看看