Apache 2.2在哪里存储自定义错误,如果有的话?

我正在尝试在Apache 2.2设置上设置自定义错误页面(403,404等)。 我知道在IIS7.5页面存储在

的%SystemDrive%\的Inetpub \ custerr \ EN-US \ 404.htm

但是我不确定它们在Apache上的位置(甚至是它们是否存在)。 有一个.config文件,我需要改变或类似的东西?

通常这些信息是在.htaccess定义的。 例如:

 ErrorDocument 500 http://foo.example.com/cgi-bin/tester ErrorDocument 404 /cgi-bin/bad_urls.pl ErrorDocument 401 /subscription_info.html ErrorDocument 403 "Sorry can't allow you access today" 

更多信息: http : //httpd.apache.org/docs/2.0/mod/core.html#errordocument

这通常在服务器的默认DocumenRoot内。 虽然这可能是一个不好的例子,但cPanel将它的默认404存储在/ usr / local / apache / htdocs /

对于所有其他不匹配的请求,股票configuration也将从默认文档根目录的任何位置加载它们。