【发布时间】:2014-10-12 04:37:13
【问题描述】:
我正在为 apache 定制各种错误代码,我知道如何去做。 (通过添加新页面并在 /etc/httpd/conf/httpd.conf 中针对各种错误代码引用它们。
我的问题是 - apache 的标准错误消息来自哪里?例如,如果我运行本地 apache 并尝试浏览不存在的 URL,我会收到以下错误。
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /not_found was not found on this server.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at localhost Port 80</address>
</body></html>
我的 httpd.conf 没有任何 ErrorDocument 覆盖。所以这是标准的 apache 错误。当我 grep 时,我找不到任何包含这些文本的文件。
这是否意味着这是来自 apache 模块?
【问题讨论】:
-
务实。
grep -r ....
标签: apache httpd.conf