有没有办法configurationApacheredirect到另一个URL的客户端,而不是在达到LimitRequestFieldSize值时显示“请求的实体太大”的错误?
为这种情况创build一个自定义的错误页面(这是响应代码413 IIRC)是否足够?
这可以通过Apacheconfiguration中的ErrorDocument 413 /path/to/error/document.html (主configuration文件)或者.htaccess如果处理被启用)完成。
有关文档,请参阅http://httpd.apache.org/docs/2.2/mod/core.html#errordocument 。