Metrics
0
Watch 1 Star 2 Fork 1

方配 / 方配.NET框架C#AFL-3.0

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
方配.NET框架是基于MVC的开发架构,有着非常简单的规范定义,同时极度降低了模块之间的耦合,是为了敏捷 Web 应用开发和简化企业应用开发而诞生的。 spread retract

Clone or download
web.config 2.45 KB
Copy Edit Web IDE Raw Blame History
方配 authored 2019-06-06 15:29 . V1.0.0
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appSettings>
<add key="webpath" value="/" />
<add key="homepath" value="demo" />
</appSettings>
<connectionStrings>
<add name="FP_DbConnString" connectionString="DbType=Oracle;DataSource=192.168.42.2;UserId=net;Password=net;DbName=orcl;Prefix=FP_" />
</connectionStrings>
<system.web>
<compilation debug="false" defaultLanguage="c#" targetFramework="4.0" />
<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/error.aspx" mode="Off">
<error statusCode="404" redirect="common/error/page_404.aspx" />
</customErrors>
<!--注意:此节设置站点的编码模式。-->
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
<pages validateRequest="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
<!--IIS经典模式下的使用的HTTP模块,如果使用集成模式,请注释-->
<httpModules>
<add type="FangPage.NET.HttpModule, FangPage.NET" name="FP_HttpModule" />
</httpModules>
<!--.NET4.0客户端安全认证配置,注意,该配置只能在.NET4.0中使用-->
<httpRuntime requestValidationMode="2.0" executionTimeout="360000" maxRequestLength="512000" />
</system.web>
<system.webServer>
<modules>
<add name="FP_HttpModule" type="FangPage.NET.HttpModule, FangPage.NET" preCondition="managedHandler" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" />
</requestFiltering>
</security>
<!--集成模式站点跨域配置,注意:*代表是所有站点-->
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Methods" value="OPTIONS,POST,GET" />
<add name="Access-Control-Allow-Headers" value="Content-Type" />
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

Comment ( 0 )

You need to Sign in for post a comment

Help Search