-
Notifications
You must be signed in to change notification settings - Fork 3
/
Web.example.config
71 lines (71 loc) · 3.38 KB
/
Web.example.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="utf-8"?>
<!--
有关如何配置 ASP.NET 应用程序的详细信息,请访问
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="CouncilConnectionString" connectionString="" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5.2" />
<httpRuntime targetFramework="4.5.2" />
<httpModules>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
</httpModules>
<customErrors mode="Off" />
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
</compilers>
</system.codedom>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<remove name="ApplicationInsightsWebTracking" />
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
</modules>
<rewrite>
<rules>
<rule name="Force HTTPS" enabled="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" />
<add input="{HTTP_HOST}" pattern="localhost" negate="true"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>
<rule name="Contacts">
<match url="^contacts$" />
<action type="Rewrite" url="Contacts.aspx"></action>
</rule>
<rule name="Conferences">
<match url="^conference$" />
<action type="Rewrite" url="Conferences.aspx"></action>
</rule>
<rule name="Conference">
<match url="^conference/([0-9]*)$" />
<action type="Rewrite" url="ConferenceDetail.aspx?id={R:1}" />
</rule>
<rule name="ConferenceManage">
<match url="^conference/manage$" />
<action type="Rewrite" url="ConferenceManage.aspx" />
</rule>
<rule name="VoteDetail">
<match url="^conference/([0-9]*)/vote/([0-9]*)$" />
<action type="Rewrite" url="ConferenceDetail.aspx?id={R:1}" />
</rule>
<rule name="VoteManage">
<match url="^conference/manage/vote/([0-9]*)$" />
<action type="Rewrite" url="VoteManage.aspx?id={R:1}" />
</rule>
<rule name="UserManage">
<match url="^user-manage$" />
<action type="Rewrite" url="UserManage.aspx" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>