You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Srinidhi H." <sr...@yahoo.com> on 2003/06/16 11:57:09 UTC
[users@httpd] Problem using ErrorDocument with LimitRequestBody directive in apache1.3.27
Hi All,
I observed a problem with Apache1.3.27 while using
LimitRequestBody directive and I thought I will check
if anyone else has come across the same problem.
The problem is if LimitRequestBody directive is set
for a apache web server with a user defined
ErrorDocument configured for this error(413) and a
client sends request exceeding the value set in
LimitRequestBody then apache is not displaying the
user defined ErrorDocument instead it is displaying
the standard 413 error document. This happens only for
local redirects and the external redirect works fine.
I looked at the apache code to see if it can be fixed.
It looks like the problem is because apache keeps the
old value for content length even for the local
redirect. So, in the process of displaying error
document, it again hits the request body limit and
throws the standard 413 error. I could get it to work
by unsetting the "Content-Length" but I am not sure if
this is the correct fix and if there is any impact of
this on any other apache functionality. Please let me
know if anyone faced the same problem and if there is
a better fix.
Complete steps to reproduce the problem,
1. Configure the httpd.conf to use LimitRequestBody
directive by adding,
LimitRequestBody 2000
2. Add a customized error response for the error from
above directive.
ErrorDocument 413 /e413.htm
3. Make a request from the client with content length
greater than 2000.
This should result in a error with the customized
error html e413.htm but instead it displays the
standard 413 error message.
Thanks,
Srinidhi.
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org