<?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> <!--ProjectGuid: EA23D83A-58AD-4685-ADF0-E6A2ADFA8801-->