Skip to content

Commit b6337c1

Browse files
committed
Update web.config
1 parent 1f40b5a commit b6337c1

1 file changed

Lines changed: 33 additions & 36 deletions

File tree

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,39 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3-
<location path="." inheritInChildApplications="false">
4-
<!-- This settings must be used along with requestLimits settings below -->
5-
<system.web>
6-
<httpRuntime maxRequestLength="1048576" executionTimeout="900" maxUrlLength="4096" maxQueryStringLength="2048" />
7-
</system.web>
8-
9-
<system.webServer>
10-
<modules runAllManagedModulesForAllRequests="false">
11-
<remove name="WebDAVModule" />
12-
</modules>
13-
14-
<handlers>
15-
<clear/>
16-
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
17-
</handlers>
18-
19-
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
20-
21-
<httpProtocol>
22-
<customHeaders>
23-
<!-- X-Powered-By - Remove the HTTP header for added security and a slight performance increase. -->
24-
<clear />
25-
</customHeaders>
26-
</httpProtocol>
27-
28-
<security>
29-
<requestFiltering>
30-
<!-- maxAllowedContentLength - Specifies the maximum length of content in a request, in bytes. The default value is 30000000 (~28.6 MB) and has
3+
<location path="." inheritInChildApplications="false">
4+
<!-- This settings must be used along with requestLimits settings below -->
5+
<system.web>
6+
<httpRuntime maxRequestLength="1048576" executionTimeout="900" maxUrlLength="4096" maxQueryStringLength="2048" />
7+
</system.web>
8+
<system.webServer>
9+
<modules runAllManagedModulesForAllRequests="false">
10+
<remove name="WebDAVModule" />
11+
</modules>
12+
<handlers>
13+
<clear />
14+
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
15+
</handlers>
16+
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false">
17+
<environmentVariables />
18+
</aspNetCore>
19+
<httpProtocol>
20+
<customHeaders>
21+
<!-- X-Powered-By - Remove the HTTP header for added security and a slight performance increase. -->
22+
<clear />
23+
</customHeaders>
24+
</httpProtocol>
25+
<security>
26+
<requestFiltering>
27+
<!-- maxAllowedContentLength - Specifies the maximum length of content in a request, in bytes. The default value is 30000000 (~28.6 MB) and has
3128
been reduced to 1048576 (1 MB). This setting is for IIS while the httpRuntime.maxRequestLength is
3229
for ASP.NET, so you need to set both to the same value otherwise the smaller number wins (See http://stackoverflow.com/questions/6327452/which-gets-priority-maxrequestlength-or-maxallowedcontentlength). -->
33-
<!-- maxQueryString - Specifies the maximum length of the query string, in bytes. The default value is 2048. This setting is for IIS while the
30+
<!-- maxQueryString - Specifies the maximum length of the query string, in bytes. The default value is 2048. This setting is for IIS while the
3431
httpRuntime.maxQueryStringLength is for ASP.NET, so you need to set up both to the same value. -->
35-
<!-- maxUrl - Specifies maximum length of the URL, in bytes. The default value is 4096. This setting is for IIS while the
32+
<!-- maxUrl - Specifies maximum length of the URL, in bytes. The default value is 4096. This setting is for IIS while the
3633
httpRuntime.maxUrlLength is for ASP.NET, so you need to set both to the same value. -->
37-
<requestLimits maxAllowedContentLength="1048576" maxQueryString="2048" maxUrl="4096" />
38-
</requestFiltering>
39-
</security>
40-
</system.webServer>
41-
</location>
42-
</configuration>
34+
<requestLimits maxAllowedContentLength="1048576" maxQueryString="2048" maxUrl="4096" />
35+
</requestFiltering>
36+
</security>
37+
</system.webServer>
38+
</location>
39+
</configuration>

0 commit comments

Comments
 (0)