-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.config
53 lines (53 loc) · 4.65 KB
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
<section name="urlrewritingnet" restartOnExternalChanges="true" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection,UrlRewritingNet.UrlRewriter"/>
</configSections>
<connectionStrings><remove name="LocalSqlServer"/></connectionStrings>
<urlrewritingnet rewriteOnlyVirtualUrls="true" contextItemsPrefix="QueryString" defaultProvider="RegEx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
<rewrites>
<add name="day" virtualUrl="^http\://(.*)/(\w{4,})/(\d{4})/(\d{0,2})/(\d+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/view.aspx?person=$2&year=$3&month=$4&day=$5" rewrite="Domain" ignoreCase="true"/>
<add name="month" virtualUrl="^http\://(.*)/(\w{4,})/(\d{4})/(\d{0,2})" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/person.aspx?person=$2&year=$3&month=$4" rewrite="Domain" ignoreCase="true"/>
<add name="year" virtualUrl="^http\://(.*)/(\w{4,})/(\d{4})" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/person.aspx?person=$2&year=$3" rewrite="Domain" ignoreCase="true"/>
<add name="person" virtualUrl="^http\://(.*)/(\w{4,})/+$" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/person.aspx?person=$2" rewrite="Domain" ignoreCase="true"/>
<add name="rss" virtualUrl="^http\://(.*)/(\w{4,})/rss/+$" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/rss.aspx?person=$2" rewrite="Domain" ignoreCase="true"/>
<add name="more" virtualUrl="^http\://(.*)/more" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/page.aspx" rewrite="Domain" ignoreCase="true"/>
<add name="api" virtualUrl="^http\://(.*)/api" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/post.aspx" rewrite="Domain" ignoreCase="true"/>
<add name="login" virtualUrl="^http\://(.*)/login" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/login.aspx" rewrite="Domain" ignoreCase="true"/>
<add name="openid" virtualUrl="^http\://(.*)/openid" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/openid.aspx" rewrite="Domain" ignoreCase="true"/>
<add name="ing" virtualUrl="^http\://(.*)/ing" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/ing.aspx" rewrite="Domain" ignoreCase="true"/>
<add name="map" virtualUrl="^http\://(.*)/sitemap.xml" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/sitemap.aspx" rewrite="Domain" ignoreCase="true"/>
<add name="upload" virtualUrl="^http\://(.*)/upload/(.*)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/static/upload/$2" rewrite="Domain" ignoreCase="true"/>
<add name="post" virtualUrl="^http\://(.*)/post/(.*).html" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/static/post/$2.html" rewrite="Domain" ignoreCase="true"/>
</rewrites>
</urlrewritingnet>
<appSettings>
<add key="serverTimeZone" value="8"/>
<add key="SQLConnString" value="Data Source=(local);Initial Catalog=aether;User ID=sa;Password="/>
<add key="WebDAL" value="SQLServerDAL"/>
</appSettings>
<system.web>
<httpModules>
<add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter"/>
</httpModules>
<pages validateRequest="false" autoEventWireup="true" enableViewState="false">
<controls>
<add tagPrefix="txt" namespace="SomeControls"></add>
<add tagPrefix="include" src="~/lib/archives.ascx" tagName="arv"></add>
<add tagPrefix="include" src="~/lib/recentComments.ascx" tagName="cmt"></add>
<add tagPrefix="include" src="~/lib/today.ascx" tagName="today"></add>
<add tagPrefix="include" src="~/lib/clips.ascx" tagName="clips"></add>
<add tagPrefix="include" src="~/lib/comments.ascx" tagName="comments"></add>
</controls>
</pages>
<compilation defaultLanguage="c#" debug="true">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
<customErrors mode="Off" defaultRedirect="error.html" />
<authentication mode="Windows"/>
<authorization><allow users="*"/></authorization>
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
<trace enabled="true" requestLimit="50" pageOutput="false" traceMode="SortByTime" localOnly="false"/>
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/>
</system.web>
</configuration>