The HttpRuntime property in Web. config.

Source: Internet
Author: User

Configuration HttpRuntime can also let FileUpload upload a larger file , However, the settings are too large for a denial-of-service attack caused by the user passing a large number of files to the server ( attributes are described )

= "True|false"

maxRequestLength= "Size in Kbytes"

executiontimeout= "Seconds"

minfreethreads= "Number of threads"

minfreelocalrequestfreethreads="Number of threads"

apprequestqueuelimit="Number of requests"

versionheader="version string"/>

Property

Property

Options

Description

appRequestQueueLimit

The maximum number of requests that ASP. NET will queue for the application. When there are not enough free threads to process the request, the request is queued. When the queue exceeds the limit specified in this setting, the incoming request is rejected through the "503-Server Too busy" error message.

Executiontimeout

Indicates the maximum number of seconds that a request is allowed to execute before it is automatically closed by ASP.

Enable

Specifies whether the application domain is enabled at the current node and child node level. The default value is true.

True

Specifies that the application domain is enabled.

False

Specifies that the application domain is disabled. The application will not load in memory, and any client requests will result in an error with an error number of 404.

IdleTimeOut

    

Specifies how long idle time the application domain will be shut down. The default value is minutes .

Enablekernelmodecache

 

Specifies whether output caching is enabled. Currently, this property only works if IIS version 6.0 or later is installed. The configuration of the output cache and the type of request determine whether the content is cached.

  • You must explicitly enable caching through page directives or using the cache API.
  • cache must have an expiration policy so the kernel knows when to discard the cache.
  • The cache cannot have any variable headers or parameters.
  • request cannot require any authentication.

True

Specifies that caching is enabled.

False

Specifies that caching is disabled.

maxRequestLength

Indicates the maximum file upload size supported by ASP. This restriction can be used to prevent denial of service attacks that result from the user passing a large number of files to the server. The specified size is in kilobytes. The default value is 4096 KB (4 MB).

Minfreelocalrequestfreethreads

The minimum number of free threads that ASP. NET maintains to allow new local requests to execute. The number of threads is reserved for incoming requests from the local host, in case some requests make child requests to the local host during their processing. This avoids possible deadlocks caused by recursive re-entry into the WEB server.

minFreeThreads

The minimum number of free threads that are allowed to execute new requests. ASP. NET is a free State for requests that require additional threads to complete their processing.

useFullyQualifiedRedirectUrl

Indicates whether client-side redirection is fully qualified (in the {HYPERLINK "Http://server/path"} format, which is required for some mobile controls), or indicates whether a relative redirect is sent to the client instead.

True

Specifies that client redirection needs to be sent in a fully qualified format. This is accomplished by automatically converting all redirects to a fully qualified format that are not fully qualified.

False

Specifies that client redirection does not need to be automatically converted to fully qualified format. false is the default option.

Versionheader

Specifies the value of the version header that ASP. NET sends with each response. Microsoft Visual Studio. NET uses this property to determine which version of ASP is currently in use. This is not required for the product environment and can be disabled by removing the property from Web. config or machine.config, or by setting the property to an empty string (versionheader= "").

The HttpRuntime property in Web. config.

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.