Web.config
5.46 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!--自行配置-->
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
<sectionGroup name="DCWeb">
<section name="HttpCompress" type="DC.Web.HttpCompress.Configuration,DC.Web.HttpCompress" />
</sectionGroup>
</configSections>
<appSettings>
<!--短信-->
<add key="smsappid" value="wx04cede" />
<add key="smsappsecret" value="bd071a3f27" />
<add key="smshost" value="http://apiopen.myjxt.com/" />
<add key="smsschema" value="JYDC" />
</appSettings>
<connectionStrings>
<!--<add name="connCore" connectionString="Data Source=question.sqlserver.rds.aliyuncs.com,3725;;Initial Catalog=questions;Persist Security Info=True;User ID=question;Password=hzsz_111111" providerName="System.Data.SqlClient"/>-->
<!--<add name="connCore" connectionString="Data Source=60.190.202.49,3341;;Initial Catalog=wjs1;Persist Security Info=True;User ID=sa;Password=hzsz_111111" providerName="System.Data.SqlClient"/>-->
<!--绍兴市属-->
<!--<add name="connCore" connectionString="Data Source=47.99.47.54,33419;;Initial Catalog=kqqdc;Persist Security Info=True;User ID=shaoxing;Password=QWer123$%^" providerName="System.Data.SqlClient"/>-->
<!--柯桥 -->
<!--<add name="connCore" connectionString="Data Source=60.190.202.44,1433;;Initial Catalog=kqqdc;Persist Security Info=True;User ID=luyou;Password=QWer123$%^" providerName="System.Data.SqlClient"/>-->
<!--绍兴市属-->
<!--<add name="connCore" connectionString="Data Source=121.40.72.86,33419;;Initial Catalog=shaoxingDB;Persist Security Info=True;User ID=shaoxing;Password=QWer123$%^" providerName="System.Data.SqlClient" />-->
<add name="connCoreYc" connectionString="Data Source=121.40.109.21,14334;;Initial Catalog=luyou;Persist Security Info=True;User ID=shaoxing;Password=QWer123$%^" providerName="System.Data.SqlClient" />
<!--柯桥-->
<add name="connCoreKq" connectionString="Data Source=121.40.109.21,14334;;Initial Catalog=luyou;Persist Security Info=True;User ID=shaoxing;Password=QWer123$%^" providerName="System.Data.SqlClient" />
<add name="connCore" connectionString="Data Source=121.40.109.21,14334;;Initial Catalog=luyou;Persist Security Info=True;User ID=luyou;Password=QWer123$%^" providerName="System.Data.SqlClient" />
<add name="messageCore" connectionString="Data Source=60.190.202.46,33415;;Initial Catalog=ems_db;Persist Security Info=True;User ID=szjxtuser;Password=RQminVCJota3H1u8bBYH" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<httpRuntime appRequestQueueLimit="10000" />
<compilation debug="true" />
<!--<authentication mode="Forms">
<forms defaultUrl="~" loginUrl="~/WeixinOAuth.html" timeout="3600"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>-->
<customErrors mode="Off" defaultRedirect="Error.html" />
<httpModules>
<!--自行配置-->
<add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
<add type="DC.Web.HttpCompress.HttpModule,DC.Web.HttpCompress" name="HttpCompressModule" />
</httpModules>
</system.web>
<system.webServer>
<modules>
<add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
<add type="DC.Web.HttpCompress.HttpModule,DC.Web.HttpCompress" name="HttpCompressModule" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
<RewriterConfig>
<Rules>
<!--error-->
<RewriterRule>
<LookFor>~/(.+)\.aspx(.*)</LookFor>
<SendTo>~/Common/Error.aspx?errmsg=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Error.html</LookFor>
<SendTo>~/Common/Error.aspx</SendTo>
</RewriterRule>
<!--ajax-->
<RewriterRule>
<LookFor>~/Area/(.+)/(.+)?</LookFor>
<SendTo>~/Common/Area.aspx?code=$1&schooltype=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Topic/(.+)/(.+)/(.+)?</LookFor>
<SendTo>~/Common/Topic.aspx?type=$1&current=$2&num=$3</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/School/(.+)/(.+)?</LookFor>
<SendTo>~/Common/School.aspx?code=$1&type=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Ajax/(.+)?</LookFor>
<SendTo>~/Common/Ajax.aspx?action=$1</SendTo>
</RewriterRule>
<!--default html-->
<RewriterRule>
<LookFor>~/?</LookFor>
<SendTo>~/Default.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/(.+)\.html(.*)</LookFor>
<SendTo>~/$1.aspx$2</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<DCWeb>
<HttpCompress compressionType="GZip">
<PathSettings jsPath="assets" cssPath="assets" />
<IncludedMimeTypes>
<add mime="text/html" />
<add mime="image/gif" />
<add mime="image/jpeg" />
<add mime="text/css" />
<add mime="application/x-javascript" />
</IncludedMimeTypes>
</HttpCompress>
</DCWeb>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>