Files
g.hnyhua.cn/Mtxfw.VipSite/Web.config
2026-02-07 15:48:27 +08:00

87 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!--数据库路径-->
<add key="ConnStr" value="Server=localhost;uid=sa;pwd=xubo123!;database=DBhnyhua;Pooling=true;Connect Timeout=100;Max Pool Size=512;Min Pool Size=0;" />
<add key="ConnStr2" value="/App_Data/data.mdb" />
<add key="ServerName" value="localhost" />
<add key="UserID" value="sa" />
<add key="UserPwd" value="xubo123!" />
<add key="DatabaseName" value="DBhnyhua" />
<add key="selfName" value="/App_Data/BackUpData/" />
<add key="Dw_Data" value="/dd/Dw_Datadd/" />
<add key="ffmpeg" value="/App_Data/ffmpeg.exe" />
<add key="JGAppKey" value="0a9debd72c7cd3c40ade7fa6" />
<add key="JGAppSecret" value="7116665c5db98d61f01b88b9" />
<!--编辑器上传目录-->
<add key="FCKeditor:UserFilesPath" value="/Files/" />
<!--是否开启自定义异常页面-->
<add key="Error" value="false" />
<!--是否允许登录-->
<add key="IFDL" value="1" />
</appSettings>
<connectionStrings />
<!--
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
可在 <httpRuntime> 标记上设置以下特性。
<system.Web>
<httpRuntime targetFramework="4.6.1" />
</system.Web>
-->
<system.web>
<customErrors mode="Off" />
<identity impersonate="true" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="zh-CN" />
<!--Session会话生存期 分钟-->
<sessionState mode="StateServer" stateNetworkTimeout="60" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="30" />
<!--数据提交禁止报错-->
<pages validateRequest="false" enableEventValidation="true" buffer="true" autoEventWireup="true" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
<!--上传文件的大小限制,NET默认2M,102400为100M,请自行修改-->
<httpRuntime requestValidationMode="2.0" executionTimeout="3000" maxRequestLength="1002400" useFullyQualifiedRedirectUrl="false" />
<compilation debug="true" targetFramework="4.8">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
</assemblies>
</compilation>
<authentication mode="Forms">
<forms name="MyCookie" loginUrl="~/a_login.aspx" timeout="60" protection="All" />
</authentication>
<httpHandlers>
<!--add verb="POST,GET,HEAD" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/-->
<add verb="*" path="*.html" type="System.Web.StaticFileHandler" />
</httpHandlers>
<httpModules>
<add type="Mtxfw.DAL.ReWriteModule,Mtxfw.DAL" name="ModuleRewriter" />
</httpModules>
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<location path="_Admin">
<system.web>
<authorization>
<allow roles="admin" />
<deny users="*" />
</authorization>
</system.web>
</location>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="default.aspx" />
<add value="index.html" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="iisstart.htm" />
</files>
</defaultDocument>
</system.webServer>
</configuration>