1 Star 0 Fork 40

智锋科技/McHIS

forked from MojoCube/McHIS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Web.config 3.02 KB
一键复制 编辑 原始数据 按行查看 历史
MojoCube 提交于 2020-09-11 14:47 . 上传
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="urlrewritingnet" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter"/>
</configSections>
<urlrewritingnet rewriteOnlyVirtualUrls="true" contextItemsPrefix="QueryString" defaultPage="Default.aspx" defaultProvider="RegEx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
<rewrites>
<add name="Home" virtualUrl="~/Dashboard/" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/Dashboard/Default.aspx" ignoreCase="true"/>
</rewrites>
</urlrewritingnet>
<appSettings>
<!--windows验证:-->
<!--<add key="Conn" value="Data Source=localhost;Integrated Security=SSPI;Initial Catalog=McHIS;" />-->
<!--sql验证:-->
<add key="Conn" value="server=localhost;user id=sa;password=123456;database=McHIS;"/>
</appSettings>
<connectionStrings/>
<system.web>
<!--信任等级,Full为赋予所有权限,默认不需要设置-->
<!--<trust level="Medium" />-->
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
<buildProviders>
<add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
<authentication mode="Windows"/>
<customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
<!--如需要自定义错误页面和404页面,用以下设置-->
<!--<customErrors mode="RemoteOnly" defaultRedirect="Error.html">
<error statusCode="403" redirect="Error.html" />
<error statusCode="404" redirect="Error.html" />
</customErrors>-->
<sessionState timeout="3600"/>
<!--默认用上面的就可以了,下面的设置让Session存放在独立的进程中,可以防止Session意外丢失(需要服务商开启ASP.NET State Server)。mode的值有InProcStateServerSQLServer-->
<!--<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" timeout="3600" />-->
<httpRuntime maxRequestLength="1024000" executionTimeout="3600" requestValidationMode="2.0"/>
<pages validateRequest="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"></pages>
</system.web>
<system.webServer>
<modules>
<add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter"/>
</modules>
<handlers>
<add name="PageHandlerFactory" verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory" />
</handlers>
<!--限制上传单个文件大小(默认1G)-->
<security>
<requestFiltering >
<requestLimits maxAllowedContentLength="1024000000" ></requestLimits>
</requestFiltering>
</security>
</system.webServer>
</configuration>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/elfbobo_admin/mc-his.git
[email protected]:elfbobo_admin/mc-his.git
elfbobo_admin
mc-his
McHIS
master

搜索帮助