web.config 配置文件

来源:互联网 发布:windows配置文件丢失 编辑:程序博客网 时间:2024/05/01 03:16

<?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>

  <rewriter file="~/Config/URLReWrite.config"/>

  <!--end url rewrite-->

<!--配置文件路径-->

  <appSettings configSource="WebConfig\Appsetting.config"/>

<!--数据库链接文件路径-->

  <connectionStrings configSource="WebConfig\ConnectionString.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"/>

<!--设置默认首页-->

    <defaultDocument>
      <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>


  </system.webServer>
</configuration>
0 0
原创粉丝点击