MarkItUp.SingleUserBlog.Web/Web.config

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
  <configSections>
    <sectionGroup name="blog">
      <section name="globalSettings" type="System.Configuration.NameValueSectionHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    </sectionGroup>
    <sectionGroup name="RewriterConfig">
      <section name="RewriterRules" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    </sectionGroup>
  </configSections>
  <blog>
    <globalSettings>
      <add key="DefaultCacheTimeoutSeconds" value="5"/>
      <add key="SmtpMailServer" value="localhost"/>
      <add key="UserDataCookieName" value="SingleUserBlog_ProductionData"/>
      <add key="AdministratorEmail" value="test@example.com"/>
      <add key="FromEmail" value="notifications@singleuserblog.com"/>
      <add key="PostUrlFormat" value="{post.year}/{post.month}/{post.day}/{post.title}.aspx"/>
      <!-- I'd like to get rid of these two. Can ResolveUrl and ResolveClientUrl handle this? -->
      <add key="BaseUrlPath" value="http://localhost:1684"/>
      <add key="BasePagePath" value="/"/>
      <!-- This isn't used -->
      <add key="RequiresUserAccount" value="false"/>
      <add key="UserLoginName" value="51aspx"/>
      <add key="UserPassword" value="51aspx"/>
      <add key="BlogIndexDataFolderPath" value="~/App_Data"/>
      <add key="BlogPostDataFolderPath" value="~/App_Data/Posts"/>
    </globalSettings>
  </blog>
  <RewriterConfig>
    <RewriterRules>
      <!-- This will match www.mydomain.com/ but not www.mydomain.com/blog/ -->
      <add key="/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([\w+]+)\.aspx$" value="~/Posts/Post.aspx?y=$1&amp;m=$2&amp;d=$3&amp;name=$4"/>
      <!-- Example for Post Archives eg. /2006/03/March.aspx -->
      <add key="/([0-9]{4})/([0-9]{1,2})/\w+\.aspx$" value="~/Posts/PostsByMonth.aspx?y=$1&amp;m=$2"/>
      <!-- Example for Categories eg. /Category/1234/SUB.aspx -->
      <add key="/Category/([0-9]{1,4})/[a-z,A-Z,+]+\.aspx$" value="~/Posts/PostsByCategory.aspx?categoryId=$1"/>
    </RewriterRules>
  </RewriterConfig>
  <connectionStrings>
    <add name="SqlBlogDataProviderConnectionString" connectionString="Database=SUB20;Server=(local);Trusted_Connection=true;"/>
    <add name="AccessFileName" connectionString="~/App_Data/ASPNetDB.mdb" providerName="System.Data.OleDb"/>
  </connectionStrings>
  <!--
    For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

    The following attributes can be set on the <httpRuntime> tag.
      <system.Web>
        <httpRuntime targetFramework="4.8" />
      </system.Web>
  -->
  <system.web>
    <webServices>
      <protocols>
        <add name="Documentation"/>
      </protocols>
    </webServices>
    <httpModules>
      <add type="MarkItUp.SingleUserBlog.Web.PostRequestModule" name="PostRequestModule"/>
    </httpModules>
后面还有 84 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。