The HttpRuntime property in Webconfig

Source: Internet
Author: User

1. Httpconfig attribute can only occur once in Webconfig

Configuring httpruntime can also allow FileUpload to upload larger files, but the settings are too large for a denial-of-service attack caused by a user passing a large number of files to the server (attributes are described)
<HttpRuntime><HttpRuntimeuseFullyQualifiedRedirectUrl= "True|false"maxRequestLength= "size in Kbytes"executiontimeout= "Seconds"minFreeThreads= "Number of threads"minfreelocalrequestfreethreads= "Number of threads"appRequestQueueLimit= "Number of requests"Versionheader= "version string"/>

Property Description:

1.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.

2.executionTimeout

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

3.enable

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

True---Specify to start the application domain

False---Specifies that the application domain is disabled. The application will no longer be loaded in memory.

4.idleTimeOut

Specifies how long the application domain will be shut down after a period of idle time. The default value is 20 minutes.

5.enableKernelModeCache

Specifies whether output caching is enabled. Currently, this property is applied only after installing version IIS6.0 or later. The configuration of the output cache and the type of request determine whether the content is cached.

To cache a response, you must satisfy the criteria:

---must enable caching through page directives or by using the cache API display.

---Cache must have an expiration policy so that the kernel knows when to discard the cache.

---Cache cannot have any variable headers or parameters.

---Request cannot require any authentication.

True---Specifies that cache false is enabled---Specifies that caching is disabled

6.maxRequestLength

Indicates the maximum file upload size supported by ASP. This restriction can be used to prevent a denial of server attack caused by a large number of files being delivered to the server by the user. The specified size is in kilobytes. The default value is 4096KB or 4MB

7.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.

8.minFreeThreads

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

9.userFullyQualifiedRedirectUrl

Indicates whether client-side redirection is fully qualified (in {Hypelink "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.

10.versionHeader

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

The HttpRuntime property in Webconfig

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.