At 20:18 27.11.2002, Ernest E Vogelsinger spoke out and said: --------------------[snip]-------------------- >Error 413 certainly denotes that the web server refuses to handle the >request. No idea how to configure this value but I'm sure it can be done >with Apache. I see a better chance of getting this answere on the apache >mailing list. --------------------[snip]--------------------
I should check first and holler later. From the Apache docs (1.3.2): LimitRequestBody directive Syntax: LimitRequestBody bytes Default: LimitRequestBody 0 Context: server config, virtual host, directory, .htaccess Status: core Compatibility: LimitRequestBody is only available in Apache 1.3.2 and later. This directive specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body. The default value is defined by the compile-time constant DEFAULT_LIMIT_REQUEST_BODY (0 as distributed). 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 passing form information to the server. 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 wich to limit the size of the uploaded file to 100K, you might use the following directive: LimitRequestBody 102400 --------------------[snip]-------------------- Try this directive if you have access to the server configuration. If you have only a virtual directory you might also use your .htaccess file, provided the directory has been configured using AllowOverride Limit, or AllowOverride All. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/