From: Roy T. Fielding Date: Wed, 12 Aug 1998 00:29:14 +0000 (+0000) Subject: Documentation for the LimitRequest* directives. X-Git-Tag: 1.3.2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=405e967857d0fdb69bbeef08d0ba8a27985550a5;p=thirdparty%2Fapache%2Fhttpd.git Documentation for the LimitRequest* directives. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@81917 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/core.html b/docs/manual/mod/core.html index 5f3abff39b0..a5f408d79d3 100644 --- a/docs/manual/mod/core.html +++ b/docs/manual/mod/core.html @@ -49,6 +49,10 @@ always available.
  • KeepAlive
  • KeepAliveTimeout
  • <Limit> +
  • LimitRequestBody +
  • LimitRequestFields +
  • LimitRequestFieldsize +
  • LimitRequestLine
  • Listen
  • ListenBacklog
  • <Location> @@ -1324,7 +1328,201 @@ listed can be one or more of: GET, POST, PUT, DELETE, CONNECT or OPTIONS. The method name is case-sensitive. If GET is used it will also restrict HEAD requests. If you wish to limit all methods, do not include any -<Limit> directive at all.


    +<Limit> directive at all. + +


    + +

    LimitRequestBody directive

    + +Syntax: LimitRequestBody number
    +Default: LimitRequestBody 0
    +Context: server config
    +Status: core
    +Compatibility: LimitRequestBody is only available in +Apache 1.3.2 and later. +

    + +Number is a long integer from 0 (meaning unlimited) to 2147483647 +(2GB). 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. +

    + +


    + +

    LimitRequestFields directive

    + +Syntax: LimitRequestFields number
    +Default: LimitRequestFields 100
    +Context: server config
    +Status: core
    +Compatibility: LimitRequestFields is only available in +Apache 1.3.2 and later. +

    + +Number is an integer from 0 (meaning unlimited) to 32767. +The default value is defined by the compile-time constant +DEFAULT_LIMIT_REQUEST_FIELDS (100 as distributed). +

    + +The LimitRequestFields directive allows the server administrator to modify +the limit on the number of request header fields allowed in an HTTP request. +A server needs this value to be larger than the number of fields that a +normal client request might include. The number of request header fields +used by a client rarely exceeds 20, but this may vary among different +client implementations, often depending upon the extent to which a user +has configured their browser to support detailed content negotiation. +Optional HTTP extensions are often expressed using request header fields. +

    + +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. The value should be increased if normal +clients see an error response from the server that indicates too many +fields were sent in the request.

    + +


    + +

    LimitRequestFieldsize directive

    + +Syntax: LimitRequestFieldsize number
    +Default: LimitRequestFieldsize 8190
    +Context: server config
    +Status: core
    +Compatibility: LimitRequestFieldsize is only available in +Apache 1.3.2 and later. +

    + +Number is an integer size in bytes from 0 to the value of the +compile-time constant DEFAULT_LIMIT_REQUEST_FIELDSIZE +(8190 as distributed). +

    + +The LimitRequestFieldsize directive allows the server administrator to reduce +the limit on the allowed size of an HTTP request header field below the +normal input buffer size compiled with the server. A server needs this +value to be large enough to hold any one header field from a normal client +request. The size of a normal request header field will vary greatly +among different client implementations, often depending upon the extent +to which a user has configured their browser to support detailed +content negotiation. +

    + +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. Under normal conditions, the value should +not be changed from the default.

    + +


    + +

    LimitRequestLine directive

    + +Syntax: LimitRequestLine number
    +Default: LimitRequestLine 8190
    +Context: server config
    +Status: core
    +Compatibility: LimitRequestLine is only available in +Apache 1.3.2 and later. +

    + +Number is an integer size in bytes from 0 to the value of the +compile-time constant DEFAULT_LIMIT_REQUEST_LINE +(8190 as distributed). +

    + +The LimitRequestLine directive allows the server administrator to reduce +the limit on the allowed size of a client's HTTP request-line below the +normal input buffer size compiled with the server. Since the request-line +consists of the HTTP method, URI, and protocol version, the +LimitRequestLine directive places a restriction on the length of a +request-URI allowed for a request on the server. A server needs this +value to be large enough to hold any of its resource names, including +any information that might be passed in the query part of a GET request. +

    + +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. Under normal conditions, the value should +not be changed from the default.

    + +


    Listen directive

    KeepAliveTimeout
  • LanguagePriority
  • <Limit> +
  • LimitRequestBody +
  • LimitRequestFields +
  • LimitRequestFieldsize +
  • LimitRequestLine
  • Listen
  • ListenBacklog
  • LoadFile