|
1 | | -<?xml version="1.0" encoding="utf-8"?> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <!-- |
3 | 3 | For more information on how to configure your ASP.NET application, please visit |
4 | 4 | https://go.microsoft.com/fwlink/?LinkId=169433 |
5 | 5 | --> |
6 | 6 | <configuration> |
7 | 7 |
|
8 | 8 | <system.web> |
9 | | - <authentication mode="None" /> |
10 | | - <compilation debug="true" targetFramework="4.5" /> |
11 | | - <httpRuntime targetFramework="4.5" /> |
12 | | - <customErrors mode="Off" /> |
| 9 | + <authentication mode="None"/> |
| 10 | + <compilation debug="true" targetFramework="4.5"/> |
| 11 | + <httpRuntime targetFramework="4.5"/> |
| 12 | + <customErrors mode="Off"/> |
13 | 13 | <sessionState mode="InProc" timeout="525600" cookieless="UseCookies" cookieName="ASP.NET_SessionId" regenerateExpiredSessionId="true"> |
14 | 14 | <providers> |
15 | | - <clear /> |
| 15 | + <clear/> |
16 | 16 | </providers> |
17 | 17 | </sessionState> |
18 | 18 | </system.web> |
19 | 19 |
|
20 | 20 | <appSettings> |
21 | | - <add key="Desharp:Enabled" value="1" /> |
22 | | - <add key="Desharp:Output" value="html" /> |
| 21 | + <add key="Desharp:Enabled" value="1"/> |
| 22 | + <add key="Desharp:Output" value="html"/> |
23 | 23 | <!--add key="Desharp:DebugIps" value="127.0.0.1,::1" /--> |
24 | | - <add key="Desharp:Levels" value="+exception,debug,info,-notice,-warning,+error,+critical,alert,+emergency,javascript" /> |
25 | | - <add key="Desharp:Panels" value="Desharp.Panels.SystemInfo,Desharp.Panels.Session" /> |
26 | | - <add key="Desharp:Directory" value="~/logs" /> |
27 | | - <add key="Desharp:Editor" value="MSVS2015" /> |
| 24 | + <add key="Desharp:Levels" value="+exception,debug,info,-notice,-warning,+error,+critical,alert,+emergency,javascript"/> |
| 25 | + <add key="Desharp:Panels" value="Desharp.Panels.SystemInfo,Desharp.Panels.Session"/> |
| 26 | + <add key="Desharp:Directory" value="~/Logs"/> |
| 27 | + <add key="Desharp:ErrorPage" value="~/custom-server-error-page.html"/> |
28 | 28 | </appSettings> |
29 | 29 |
|
30 | 30 | <system.webServer> |
|
44 | 44 | <remove name="UrlRoutingModule-4.0"/> |
45 | 45 | <remove name="ScriptModule-4.0"/> |
46 | 46 | <!-- https://docs.microsoft.com/en-us/iis/configuration/system.webserver/modules/add --> |
47 | | - <add name="Desharp" type="Desharp.Module" preCondition="managedHandler" /> |
| 47 | + <add name="Desharp" type="Desharp.Module" preCondition="managedHandler"/> |
48 | 48 | </modules> |
49 | | - <caching enabled="false" enableKernelCache="false" /> |
50 | | - <directoryBrowse enabled="false" /> |
| 49 | + <caching enabled="false" enableKernelCache="false"/> |
| 50 | + <directoryBrowse enabled="false"/> |
51 | 51 |
|
52 | 52 | <security> |
53 | 53 | <requestFiltering> |
54 | 54 | <hiddenSegments> |
55 | | - <add segment="logs" /> |
56 | | - <add segment="Desharp.config.example" /> |
| 55 | + <add segment="Desharp.config.example"/> |
| 56 | + <add segment="Logs"/> |
57 | 57 | </hiddenSegments> |
58 | 58 | </requestFiltering> |
59 | 59 | </security> |
60 | 60 |
|
61 | 61 | <rewrite> |
62 | 62 | <rules> |
63 | 63 | <rule name="All to empty Index.aspx to handle everything in Global.aspx" enabled="true" stopProcessing="true"> |
64 | | - <match url="(.*)" /> |
| 64 | + <match url="(.*)"/> |
65 | 65 | <conditions logicalGrouping="MatchAll"> |
66 | 66 | <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> |
67 | 67 | </conditions> |
68 | | - <action type="Rewrite" url="Index.aspx?{R:1}" /> |
| 68 | + <action type="Rewrite" url="Index.aspx?{R:1}"/> |
69 | 69 | </rule> |
70 | 70 | </rules> |
71 | 71 | </rewrite> |
72 | 72 |
|
73 | | - <httpErrors errorMode="Detailed" /> |
| 73 | + <httpErrors errorMode="Detailed"/> |
74 | 74 |
|
75 | 75 | <staticContent> |
76 | | - <mimeMap fileExtension=".md" mimeType="text/x-markdown" /> |
| 76 | + <mimeMap fileExtension=".md" mimeType="text/x-markdown"/> |
77 | 77 | </staticContent> |
78 | 78 |
|
79 | 79 | </system.webServer> |
80 | 80 |
|
81 | 81 | <runtime> |
82 | | - <loadFromRemoteSources enabled="true" /> |
| 82 | + <loadFromRemoteSources enabled="true"/> |
83 | 83 | </runtime> |
84 | 84 |
|
85 | 85 | </configuration> |
0 commit comments