You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Curby <cu...@gmail.com> on 2006/12/14 09:37:47 UTC

[users@httpd] Enabling huge uploads

I'm having trouble accepting large file uploads in Apache 2.0.46
(RHEL3).  I've set

LimitRequestBody 1074790400

which is 1025 MB in my virtual host, and (in case it matters) PHP is
set up thus:

max_input_time = 120
memory_limit = 8M
post_max_size = 999M
file_uploads = On
upload_tmp_dir = /var/tmp/transfer
upload_max_filesize = 999M

When I try to upload a file under 20MB, it succeeds.  When I try to
upload something bigger, it fails with the following browser and
Apache log messages:

413 Request Entity Too Large

Requested content-length of 322255188 is larger than the configured
limit of 20000000, referer: https://XXXXXXXXXXXXXXXXXX

The only thing I've found that might solve this is the
LimitRequestBody directive shown above, but either it's not supported
in my version (though the documentation doesn't indicate this) or I'm
missing something else obvious.

Any ideas or pointers would be most appreciated.  Thanks!

--Mike

---------------------------------------------------------------------
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


Re: [users@httpd] Enabling huge uploads

Posted by Steve Swift <st...@gmail.com>.
I got so fed up with having to search through the file included from
httpd.conf that I wrote myself a little utility to generate a composite
httpd.conf file containing all of the included files.  I was quite amazed at
how much extra stuff was being configured in my apache!

On 14/12/06, Curby <cu...@gmail.com> wrote:
>
> On 12/14/06, Richard Lynch <ce...@l-i-e.com> wrote:
> > On Thu, December 14, 2006 2:37 am, Curby wrote:
> > > I'm having trouble accepting large file uploads in Apache 2.0.46
> > > (RHEL3).  I've set
> > >
> > > LimitRequestBody 1074790400
> >
> > I *think* Apache also has a separate Limit on the POST size...
> >
> > Search for that in your httpd.conf and http://apache.org directives.
>
> Whoops, sorry about all that.  I stupidly forgot to search other
> configuration files for this directive.  It was set in another
> confiiguration file.  Changing the directive in the other place as
> well made everything work.  Thanks!
>
> --Mike
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
Steve Swift
http://www.swiftys.org.uk

Re: [users@httpd] Enabling huge uploads

Posted by Curby <cu...@gmail.com>.
On 12/14/06, Richard Lynch <ce...@l-i-e.com> wrote:
> On Thu, December 14, 2006 2:37 am, Curby wrote:
> > I'm having trouble accepting large file uploads in Apache 2.0.46
> > (RHEL3).  I've set
> >
> > LimitRequestBody 1074790400
>
> I *think* Apache also has a separate Limit on the POST size...
>
> Search for that in your httpd.conf and http://apache.org directives.

Whoops, sorry about all that.  I stupidly forgot to search other
configuration files for this directive.  It was set in another
confiiguration file.  Changing the directive in the other place as
well made everything work.  Thanks!

--Mike

---------------------------------------------------------------------
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


Re: [users@httpd] Enabling huge uploads

Posted by Richard Lynch <ce...@l-i-e.com>.
On Thu, December 14, 2006 2:37 am, Curby wrote:
> I'm having trouble accepting large file uploads in Apache 2.0.46
> (RHEL3).  I've set
>
> LimitRequestBody 1074790400

I *think* Apache also has a separate Limit on the POST size...

Search for that in your httpd.conf and http://apache.org directives.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?


---------------------------------------------------------------------
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