Apache: unrestricting content-length?

Dan Coutu coutu at snowy-owl.com
Mon Feb 3 13:17:12 EST 2003


pll at lanminds.com wrote:

> Hi all,
> 
> I'm trying to get Apache to accept files for upload to a server.  
> Everything worked fine while testing on my local system, but as soon 
> as I moved the cgi script to the production server I began getting 
> errors about:
> 
> 	Request content-length of 224690 is larger than the
> 	configured limit of 75000
> 
> Interstingly, I can not find where this limit of 75000 is set.  
> There's nothing in my httpd.conf file that I could find.
> 
> I'm using Apache 1.3.  Anyone have any ideas?
> 


The default limit is set at compile time. You can raise the limit to 

as much as 2147483647 bytes (which is 2GB). Do this by adding this to

your httpd.conf file:


LimitRequestBody 2147483647

Of course you can use whatever other number you like...

-- 

Dan Coutu
Managing Director
Snowy Owl Internet Consulting, LLC
http://www.snowy-owl.com/
Mobile: 603-759-3885
Fax: 603-673-6676





More information about the gnhlug-discuss mailing list