Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Nov 04, 2003 4:56 pm 
Offline
Senior Newbie

Joined: Tue Nov 04, 2003 4:46 pm
Posts: 6
Website: http://www.andrewhodel.com
Location: San Antonio, TX
When I upload files using php I have problems, if the file is > 500k, I get this error, 413 Request Entity to Large. This is an apache error and max upload size in php.ini is 2mb, I don't know what the problem is.

btw, running gentoo on my linode if it matters.

_________________
___________
`Andrew


Top
   
 Post subject:
PostPosted: Tue Nov 04, 2003 6:39 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Does this help?

http://httpd.apache.org/docs-2.0/mod/co ... equestbody

Quote:
This directive specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body.

The LimitRequestBody directive allows the user to set a limit on the allowed size of an HTTP request message body within the context in which the directive is given (server, per-directory, per-file or per-location). If the client request exceeds that limit, the server will return an error response instead of servicing the request. The size of a normal request message body will vary greatly depending on the nature of the resource and the methods allowed on that resource. CGI scripts typically use the message body for retrieving form information. Implementations of the PUT method will require a value at least as large as any representation that the server wishes to accept for that resource.

This directive gives the server administrator greater control over abnormal client request behavior, which may be useful for avoiding some forms of denial-of-service attacks.

If, for example, you are permitting file upload to a particular location, and wish to limit the size of the uploaded file to 100K, you might use the following directive:


-Chris


Top
   
 Post subject: Yea
PostPosted: Wed Nov 05, 2003 10:49 am 
Offline
Senior Newbie

Joined: Tue Nov 04, 2003 4:46 pm
Posts: 6
Website: http://www.andrewhodel.com
Location: San Antonio, TX
root@localhost conf # grep -r LimitRequest *
modules.d/70_mod_php.conf: LimitRequestBody 524288
modules.d/70_mod_php.conf: LimitRequestBody 524288
modules.d/70_mod_php.conf: LimitRequestBody 524288
modules.d/70_mod_php.conf: LimitRequestBody 524288
modules.d/70_mod_php.conf: LimitRequestBody 524288

That is probably it, thanks.

_________________
___________

`Andrew


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group