zoukankan      html  css  js  c++  java
  • 关于Apache报错 couldn't perform authentication. AuthType not set!

    今天在使用apache搭建yum的web服务时,配置完成后、访问http://ip 时,浏览器报错:500 Internal Server Error

    然后查询error.log发现,有如下错误提示:

    [Sat Jul 18 11:28:23 2020] [crit] [client 12.23.72.148] configuration error:  couldn't perform authentication. AuthType not set!: /

    最为奇怪的是在重启httpd服务时,终端上还没有报任何报错提示!

    一般我们知道50x 错误,大多是指的服务器端错误,然后再次检查新加的配置文件 :

    <VirtualHost *:80>
      DocumentRoot "/patch/"
    </VirtualHost>
    
    <directory "/patch/">
      options +indexes
      Require all granted
    </directory>

    上网查询后得知, "Require all granted" 指令只能用于 Apache 2.4 ,然后使用httpc -v在自己服务器查询得知,apache版本为2.2.15

    Server version: Apache/2.2.15 (Unix)
    Server built:   Feb 19 2018 06:33:11

     解决方法>>>>>:

    1、上配置中的Require all granted修改为如下两句即可:

      Order allow,deny
      Allow from all

    尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/13335184.html

  • 相关阅读:
    ORM框架
    优酷项目1
    新年第一天
    前端第十天
    前端第九天
    前端第八天
    前端第七天
    前端第六天
    前端第五天
    月亮与六便士
  • 原文地址:https://www.cnblogs.com/5201351/p/13335184.html
Copyright © 2011-2022 走看看