Httpruntime web. config attributes

Source: Internet
Author: User

Configuring httpruntime also allows fileupload to upload larger files. However, if it is too largeDenial-of-service attacks caused by a large number of files being transferred to the server(Attributes are described)

<Httpruntime>

 
<Httpruntime usefullyqualifiedredirecturl= "True | false"
Maxrequestlength= "Size in Kbytes"
Executiontimeout="Seconds"
Minfreethreads="Number of Threads"
Minfreelocalrequestfreethreads="Number of Threads"
Apprequestqueuelimit="Number of requests"
Versionheader ="Version string"/>
Attribute
Attribute Option Description
Apprequestqueuelimit ASP. NET will be an applicationProgramThe maximum number of queued requests. Requests are queued when there are not enough free threads to process requests. When the queue exceeds the limit specified in this setting, the incoming request is rejected through the "503-the server is too busy" error message.
Executiontimeout Indicates the maximum number of seconds allowed to execute a request before it is automatically disabled by ASP. NET.
Enable   Specifies whether to enable application domains at the current node and subnode level. The default value isTrue.
True Specifies to enable the application domain.
False Specifies to disable the application domain. The application will not load in the memory, and any client request will cause an error code 404.
Idletimeout Specifies how long the application domain will be closed after idle time. The default value is20 minutes.
Enablekernelmodecache   Specifies whether to enable the output cache. Currently, this attribute only takes effect after IIS version 6.0 or later is installed. The output cache configuration and request type determine whether to cache the content.

To Cache the response, the following conditions must be met:

  • You must enable the cache explicitly by using page commands or using the cache API.
  • The cache must have an expiration policy so that the kernel knows when to discard the cache.
  • The cache cannot contain any variable headers or parameters.
  • The request cannot require any authentication.
  True Specify to enable cache.
  False Disable cache.
Maxrequestlength Indicates the maximum file upload size supported by ASP. NET. This restriction can be used to prevent DoS attacks caused by a large number of files being transferred to the server. The specified size is in KB. The default value is 4096 KB (4 MB ).
Minfreelocalrequestfreethreads ASP. NET maintains the minimum number of free threads allowed to execute new local requests. The number of threads is reserved for requests passed in from the local host to prevent some requests from sending subrequests to the local host during processing. This avoids possible deadlocks caused by recursive re-entering the web server.
Minfreethreads The minimum number of free threads allowed to execute new requests. ASP. NET requires additional threads to complete their processing requests so that these threads remain free.
Usefullyqualifiedredirecturl Indicates whether client redirection is fully qualified (in the format of {HYPERLINK "http: // server/path"}, which is required by some mobile controls ), or indicates whether to send relative redirection to the client.
True Specify that the client redirection needs to be sent in a fully qualified format. This is achieved by automatically converting all redirects in not fully qualified formats to fully qualified formats.
False The specified client redirection does not need to be automatically converted to a fully qualified format.FalseIs the default option.
versionheader specify the version header value that ASP. NET sends with each response. Microsoft Visual Studio. NET uses this attribute to determine the current ASP. NET version. This is not necessary for the product environment, and can be achieved through the Web. config or machine. config removes this attribute, or sets it to an empty string ( versionheader = "") to disable it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.