关于Apache报错 couldn't perform authentication. AuthType not set!

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于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

以上是关于关于Apache报错 couldn't perform authentication. AuthType not set!的主要内容,如果未能解决你的问题,请参考以下文章

关于Elipse安装报错Unfortunately the Java version needed to run Eclipse Installer couldn't be found on

报错:Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

quartz报错 Couldn't retrieve job because the BLOB couldn't be deserialized: null

flume使用MemoryChannel报错:Space for commit to queue couldn‘t be acquired

解决 Sourcetree 报错 Couldn't posix_spawn: error 2 问题

解决Warning Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get fil