apache服务器InternalServerError(内部服务错误)

编程

问题显现:

首先,我先展示一下错误提示代码:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost 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.

很多人一看到最上面那个错误提示代码,就觉得很懵逼,这也不奇怪(我也一样o__o)

其实本质上就是内部服务错误,而造成这个错误的原因很多,像我的错误如下所示:

[Mon Jun 01 20:17:07.262071 2020] [http:error] [pid 8096:tid 2004] [client 127.0.0.1:56073] AH02429: Response header name "3;url=http" contains invalid characters, aborting request

看了日志后发现是自己的代码写得有点问题,便找到了源头

解决方案:

查看Apache日志 

查看目录:Apache安装目录 -> logs -> error.log

以上是 apache服务器InternalServerError(内部服务错误) 的全部内容, 来源链接: utcz.com/z/517042.html

回到顶部