-
Notifications
You must be signed in to change notification settings - Fork 1
/
web.config
63 lines (63 loc) · 2.89 KB
/
web.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
<?xml version="1.0"?>
<!--方配网站管理系统(WMS)配置文件
方配软件技术有限公司自主独立开发
有关WMS系统的详细消息,请访问方配官方网站:http://www.fangpage.com QQ:12677206 群:17672212
-->
<configuration>
<appSettings>
<add key="webpath" value="/" />
<add key="sitepath" value="oa" />
</appSettings>
<connectionStrings>
<add name="dbconnstring" connectionString="Jyy1AGOTMj3rPA2LEinc7rGNN/N2djVp90jDqKt9gbrvNfVwDlNM4/gbgLKyFqYDpC7UprMfzDACkrbc5FRG4EozqZvvNNp5" />
<add name="subconnstring" connectionString="4l35xhbN+4tsut7S1U+BTIqpdOx2dcYbgIi/eKNk8KhrAGKV4Rgqbc98hLRN+ZUzNg3I3ywL7SJ7/SXO0D6zRw==" />
</connectionStrings>
<system.web>
<compilation debug="true" defaultLanguage="c#" />
<authorization>
<allow users="*" />
</authorization>
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
<!-- 注意:此节设置错误信息的显示
"On" 始终显示自定义(友好的)信息。
"Off" 始终显示详细的 ASP.NET 错误信息。
"RemoteOnly" 只对不在本地 Web 服务器上运行的
-->
<customErrors defaultRedirect="common/error/index.aspx" mode="Off">
<error statusCode="404" redirect="common/error/404.aspx" />
</customErrors>
<!-- 注意:此节设置站点的编码模式。-->
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
<pages validateRequest="false" />
<httpModules>
<add type="FangPage.WMS.HttpModule, FangPage.WMS" name="FP_HttpModule" />
</httpModules>
<httpRuntime executionTimeout="360000" maxRequestLength="102400" />
</system.web>
<system.webServer>
<modules>
<add name="FP_HttpModule" type="FangPage.WMS.HttpModule, FangPage.WMS" preCondition="managedHandler" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
<!--站点跨域配置,注意:*代表是所有站点-->
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Methods" value="OPTIONS,POST,GET" />
<add name="Access-Control-Allow-Headers" value="x-requested-with" />
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
<!--多个域名跨域,注意:需要安装微软URLRewrite(支持 IIS 7 以及之后的版本)-->
<!--<rewrite>
<outboundRules>
<rule name="AddCrossDomain">
<match serverVariable="RESPONSE_Access_Control_Allow_Origin" pattern=".*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="true">
<add input="{HTTP_ORIGIN}" pattern="(http(s)?://((.+\.)?domain1\.com|(.+\.)?domain2\.com|(.+\.)?domain3\.com))" />
</conditions>
<action type="Rewrite" value="{C:0}" />
</rule>
</outboundRules>
</rewrite>-->
</system.webServer>
</configuration>