web.config 配置檔案
阿新 • • 發佈:2019-02-13
<?xml version="1.0"?>
<configuration>
<!--url rewrite 自定義節點 rewriter -->
<configSections>
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
<sectionGroup name="system.web">
<section name="neatUpload" type="Brettle.Web.NeatUpload.ConfigSectionHandler,Brettle.Web.NeatUpload" allowLocation="true"/>
</sectionGroup>
</configSections>
<!--end url rewrite-->
<!--配置檔案路徑-->
<appSettings configSource="WebConfig\Appsetting.config"/>
<!--資料庫連結檔案路徑-->
</connectionStrings>
<!--偽靜態配置 .shtml -->
<system.webServer>
<handlers>
<add name="myurl" path="*.shtml" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32"/>
</handlers>
<urlCompression doDynamicCompression="false"/>
<!--設定預設首頁-->
<files>
<remove value="default.aspx"/>
<remove value="iisstart.htm"/>
<remove value="index.htm"/>
<remove value="index.html"/>
<remove value="Default.asp"/>
<remove value="Default.htm"/>
<add value="index.html"/>
</files>
</defaultDocument>
</configuration>