【发布时间】:2011-12-21 09:41:31
【问题描述】:
我使用 Apache 作为代理服务器。当我的 Web 应用程序发送 500 错误代码作为对 AJAX 调用的响应时,apache 会显示它自己的默认内部错误消息
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>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.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
有没有办法避免这种情况,这样错误响应就不会被 apache 服务器变形。
【问题讨论】: