Internal Server Error 500 错误

配置好虚拟主机之后进行访问,出现如下错误:
错误代码:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

对于该错误网上有不同的说法,仅把我解决的方法贴出来供大家参考。
思路:首先应该去看日志,根据错误日志才好对症下药。

言归正传:我的是Linux下的环境,使用命令vi /var/log/httpd/error_log 查看apache的错误日志,在文件的最下方找到了如下记录:

[Fri Jun 05 10:40:43 2015] [crit] [client 192.168.2.169] configuration error:  couldn't perform authentication. AuthType not set!: /
[Fri Jun 05 10:40:43 2015] [crit] [client 192.168.2.169] configuration error:  couldn't perform authentication. AuthType not set!: /favicon.ico, referer: http://vip.mycihi.cn/

如图所示:
错误日志

根据错误日志所示去网上找了下,解决我问题的方法是:
修改/usr/local/apache/conf/httpd.conf中站点的根目录
AllowOverride All
Satisfy Any
详细信息如下:

<Directory />
    Options FollowSymLinks
#    AllowOverride None
    AllowOverride All
    Order deny,allow
#    Deny from all
#Satisfy all
Satisfy Any
</Directory>

正确的代码片段

欧克,再次访问就正常了。

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值