Apache:“未设置AuthType!" 500错误 [英] Apache: "AuthType not set!" 500 Error

查看:237
本文介绍了Apache:“未设置AuthType!" 500错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我使用Apache httpd Web服务器以来已经有一段时间了.我正在为项目启动本地服务器,当我尝试请求localhost/index.html时,出现500错误,并且在错误日志中看到了这一点:

It's been a while since I used the Apache httpd web server. I'm firing up a local server for a project and when I try to request localhost/index.html, I get a 500 error and I see this in the error log:

[Tue Jan 21 09:23:58 2014] [crit] [client ::1] configuration error:  couldn't perform authentication. AuthType not set!: /index.html
[Tue Jan 21 09:23:58 2014] [error] an unknown filter was not added: DEFLATE
[Tue Jan 21 09:23:58 2014] [crit] [client ::1] configuration error:  couldn't perform authentication. AuthType not set!: /favicon.ico

在apache配置中似乎可能有2个错误,其中一个与未设置AuthType!"有关.可能与过滤器未添加:DEFLATE"有关.我不知道这些是什么意思或从哪里开始挖掘.

It looks like there are possibly 2 errors here in the apache config, one related to "AuthType not set!" and possibly another related to "filter was not added: DEFLATE". I dont know what these means or where to start digging in.

一个基本的Google搜索显示了此链接,这表明罪魁祸首可能是要求全部授予".我的httpd.conf中的这一行可能会涉及.

A basic Google search revealed this link which indicates that the culprit may be "Require all granted". This line in my httpd.conf may be involved.

<Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>

此apache配置主要用于该项目的生产中,因此我知道这是可行的,但当前不在我的工作站上.这是什么意思,下一步我应该尝试什么?我确实尝试注释掉要求所有被授予的权限",然后重新启动apache,但无济于事.

This apache config is mostly what is used in production for this project, so I know this works, just not currently on my workstation. What does this mean and what should I try next? I did try commenting out "Require all granted" and restarting apache but to no avail.

此SO问题我还加载了mod_authz_host

Following this SO question I also loaded mod_authz_host

LoadModule authz_host_module modules/mod_authz_host.so

并添加全部允许",重新启动服务器.但问题仍然存在.放气问题似乎无关,可以通过添加

and added "Allow from all", restarted the server,. but the issue persists. The deflate issue appears to be unrelated, and was easily solved by adding

LoadModule deflate_module modules/mod_deflate.so

问题仍然存在,我该如何解决这500个错误?

The question remains, how do I solve this 500 error?

[Tue Jan 21 09:44:20 2014] [crit] [client ::1] 
configuration error:  couldn't perform authentication. 
AuthType not set!: /index.html

推荐答案

删除显示以下内容的行

Require all granted

仅在Apache> = 2.4

it's only needed on Apache >=2.4

这篇关于Apache:“未设置AuthType!" 500错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆