PageRenderTime 52ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/branches/dasBlog2.3.2/source/newtelligence.DasBlog.Web/Web.config

#
Unknown | 239 lines | 237 code | 2 blank | 0 comment | 0 complexity | 81e33b659a82b479f42b60abdb2c515f MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <?xml version="1.0"?>
  2. <configuration>
  3. <configSections>
  4. <!-- USED FOR CUSTOM MACROS ONLY
  5. <section requirePermission="false" name="newtelligence.DasBlog.Macros" type="newtelligence.DasBlog.Web.Core.MacroSectionHandler, newtelligence.DasBlog.Web.Core" /> -->
  6. <section requirePermission="false" name="newtelligence.ControlImages" type="newtelligence.DasBlog.Web.Core.WebControls.ControlImageModuleSectionHandler, newtelligence.DasBlog.Web.Core"/>
  7. <section requirePermission="false" name="newtelligence.DasBlog.UrlMapper" type="newtelligence.DasBlog.Web.Core.UrlMapperModuleSectionHandler, newtelligence.DasBlog.Web.Core"/>
  8. <section requirePermission="false" name="newtelligence.DasBlog.TitleMapper" type="newtelligence.DasBlog.Web.Core.TitleMapperModuleSectionHandler, newtelligence.DasBlog.Web.Core"/>
  9. <section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  10. <section name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection" requirePermission="false" allowLocation="true"/>
  11. <!-- http compression handler section -->
  12. <sectionGroup name="blowery.web">
  13. <section requirePermission="false" name="httpCompress" type="blowery.Web.HttpCompress.SectionHandler, blowery.Web.HttpCompress"/>
  14. </sectionGroup>
  15. </configSections>
  16. <runtime>
  17. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  18. <dependentAssembly>
  19. <assemblyIdentity name="FreeTextBox" publicKeyToken="5962a4e684a48b87" culture="neutral"/>
  20. <bindingRedirect oldVersion="3.0.0.0-3.3.0.22838" newVersion="3.3.0.22838"/>
  21. </dependentAssembly>
  22. </assemblyBinding>
  23. </runtime>
  24. <!-- USED FOR CUSTOM MACROS ONLY
  25. <newtelligence.DasBlog.Macros>
  26. <add macro="foo" type="FooMacroPlugin.FooMacros,FooMacroPlugin"/>
  27. </newtelligence.DasBlog.Macros> -->
  28. <newtelligence.ControlImages>
  29. <add type="newtelligence.DasBlog.Web.Core.WebControls.ShadowBox" name="shadowbox"/>
  30. </newtelligence.ControlImages>
  31. <newtelligence.DasBlog.UrlMapper>
  32. <add matchExpression="(?&lt;basedir&gt;.*?)/atom\.ashx" mapTo="{basedir}/SyndicationServiceExperimental.asmx/GetAtom?"/>
  33. <add matchExpression="(?&lt;basedir&gt;.*?)/rss\.as[hp]x" mapTo="{basedir}/SyndicationService.asmx/GetRss?"/>
  34. <!-- TSC: LINK rewriting -->
  35. <add matchExpression="LINKRW(?&lt;site&gt;.+).aspx\?(?&lt;param&gt;.+)=(?&lt;value&gt;.+)" mapTo="{site},{param},{value}.aspx"/>
  36. <!-- TSC: URL rewriting -->
  37. <!-- (?<basedir>.*?)/(?<site>.*?),(?<param>.*?),(?<value>.+)\.aspx -->
  38. <add matchExpression="(?&lt;basedir&gt;.*?)/(?&lt;site&gt;.*?),(?&lt;param&gt;.*?),(?&lt;value&gt;.+)\.aspx" mapTo="{basedir}/{site}.aspx?{param}={value}"/>
  39. <!-- .TEXT archive compatibility -->
  40. <!-- Translates
  41. FROM: /blog/archive/2004/07/27/194.aspx
  42. TO: /blog/default.aspx?date=2004-07-27
  43. -->
  44. <add matchExpression="(?&lt;basedir&gt;.*?)/archive/(?&lt;year&gt;\d{4})/(?&lt;month&gt;\d{2})/(?&lt;day&gt;\d{2})/(?&lt;postid&gt;\d+)\.aspx" mapTo="{basedir}/default.aspx?date={year}-{month}-{day}"/>
  45. <!-- .TEXT archive compatibility -->
  46. <!-- ALTERNATIVE: Translates
  47. FROM: /blog/archive/2004/07/27/194.aspx
  48. TO: /blog/permalink.aspx?guid=194
  49. -->
  50. <!--
  51. <add matchExpression="(?&lt;basedir&gt;.*?)/archive/(?&lt;year&gt;\d{4})/(?&lt;month&gt;\d{2})/(?&lt;day&gt;\d{2})/(?&lt;postid&gt;\d+)\.aspx"
  52. mapTo="{basedir}/permalink.aspx?guid={postid}" />
  53. -->
  54. </newtelligence.DasBlog.UrlMapper>
  55. <!-- files not participating in the titlemapper module-->
  56. <newtelligence.DasBlog.TitleMapper>
  57. <exclusions>
  58. <clear/>
  59. <add path="CaptchaImage.aspx"/>
  60. <add path="aggbug.ashx"/>
  61. <add path="blogger.aspx"/>
  62. <add path="pingback.aspx"/>
  63. <add path="get_aspx_ver.asp"/>
  64. </exclusions>
  65. </newtelligence.DasBlog.TitleMapper>
  66. <!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names),
  67. which is necessary for OpenID urls with unicode characters in the domain/host name.
  68. It is also required to put the Uri class into RFC 3986 escaping mode, which OpenID and OAuth require. -->
  69. <uri>
  70. <idn enabled="All"/>
  71. <iriParsing enabled="true"/>
  72. </uri>
  73. <dotNetOpenAuth>
  74. <openid>
  75. <relyingParty>
  76. <behaviors>
  77. <!-- Talk Sreg or AX automatically depending on the Provider the user is logging in or commenting with. -->
  78. <add type="DotNetOpenAuth.OpenId.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth"/>
  79. </behaviors>
  80. </relyingParty>
  81. </openid>
  82. </dotNetOpenAuth>
  83. <!-- config section for my http module -->
  84. <blowery.web>
  85. <!-- Here's an example on how to change the algorithm or compression level
  86. <compressionModule preferredAlgorithm="deflate|gzip" compressionLevel="high|normal|low"/>
  87. so, to use deflate by default, and high compression, you would use the following line
  88. -->
  89. <httpCompress preferredAlgorithm="gzip" compressionLevel="high">
  90. <excludedMimeTypes>
  91. <add type="image/jpeg"/>
  92. <add type="image/gif"/>
  93. </excludedMimeTypes>
  94. <excludedPaths>
  95. <add path="WebResource.axd"/>
  96. <add path="ebResource.axd"/>
  97. </excludedPaths>
  98. </httpCompress>
  99. </blowery.web>
  100. <system.diagnostics>
  101. <assert assertuienabled="false"/>
  102. <switches>
  103. <add name="OpenID" value="4"/>
  104. </switches>
  105. <trace autoflush="true" indentsize="4">
  106. <listeners>
  107. <add name="fileLogger" type="System.Diagnostics.TextWriterTraceListener"
  108. initializeData="openidConsumerTrace.txt" traceOutputOptions="None"/>
  109. </listeners>
  110. </trace>
  111. </system.diagnostics>
  112. <system.web>
  113. <!-- DYNAMIC DEBUG COMPILATION
  114. Set compilation debug="true" to enable ASPX debugging. Otherwise, setting this value to
  115. false will improve runtime performance of this application.
  116. Set compilation debug="true" to insert debugging symbols (.pdb information)
  117. into the compiled page. Because this creates a larger file that executes
  118. more slowly, you should set this value to true only when debugging and to
  119. false at all other times. For more information, refer to the documentation about
  120. debugging ASP .NET files.
  121. -->
  122. <compilation defaultLanguage="c#" debug="true" targetFramework="4.0"/>
  123. <!-- CUSTOM ERROR MESSAGES
  124. Set customError mode values to control the display of user-friendly
  125. error messages to users instead of error details (including a stack trace):
  126. "On" Always display custom (friendly) messages
  127. "Off" Always display detailed ASP.NET error information.
  128. "RemoteOnly" Display custom (friendly) messages only to users not running
  129. on the local Web server. This setting is recommended for security purposes, so
  130. that you do not display application detail information to remote clients.
  131. -->
  132. <customErrors mode="Off"/>
  133. <!-- ***IMPORTANT*** If you are using ASP.NET 2.0 to host dasBlog
  134. you must uncomment the httpCookies section below,
  135. as dasBlog was written for ASP.NET 1.1 and will
  136. automatically add the HttpOnly flag to cookies automatically -->
  137. <!-- <httpCookies httpOnlyCookies="false"/> -->
  138. <authentication mode="Forms">
  139. <!-- NOTE: If you want to run MULTIPLE dasBlogs on the SAME Domain Name
  140. include the path in each blog's Web.Config like path="/dasblog1" and path="/yoursite"
  141. as appropriate. -->
  142. <forms name=".DASBLOGAUTH" protection="All" timeout="60" path="/" cookieless="UseCookies"/>
  143. </authentication>
  144. <!--
  145. If your ISP/Hoster supports ASP.NET impersonation, they are likley
  146. setting this to true in their machine.config. You should not set it to true
  147. unless you know that dasBlog will have the correct permissions
  148. <identity impersonate="false" />
  149. -->
  150. <httpRuntime useFullyQualifiedRedirectUrl="true" requestValidationMode="2.0"/>
  151. <!-- APPLICATION-LEVEL TRACE LOGGING
  152. Application-level tracing enables trace log output for every page within an application.
  153. Set trace enabled="true" to enable application trace logging. If pageOutput="true", the
  154. trace information will be displayed at the bottom of each page. Otherwise, you can view the
  155. application trace log by browsing the "trace.axd" page from your web application
  156. root.
  157. -->
  158. <trace enabled="false" writeToDiagnosticsTrace="true" requestLimit="1000" pageOutput="false" traceMode="SortByTime" localOnly="false"/>
  159. <!-- SESSION STATE SETTINGS
  160. By default ASP .NET uses cookies to identify which requests belong to a particular session.
  161. If cookies are not available, a session can be tracked by adding a session identifier to the URL.
  162. To disable cookies, set sessionState cookieless="true".
  163. -->
  164. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="20"/>
  165. <!-- GLOBALIZATION
  166. This section sets the globalization settings of the application.
  167. -->
  168. <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
  169. <pages validateRequest="true" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
  170. <httpHandlers>
  171. <add verb="GET" path="CaptchaImage.aspx" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha"/>
  172. <add verb="*" path="aggbug.ashx" type="newtelligence.DasBlog.Web.Services.AggregatorBugHandler, newtelligence.DasBlog.Web.Services"/>
  173. <add verb="*" path="ct.ashx" type="newtelligence.DasBlog.Web.Services.ClickThroughHandler, newtelligence.DasBlog.Web.Services"/>
  174. <add verb="*" path="cptrk.ashx" type="newtelligence.DasBlog.Web.Services.CrosspostReferrerHandler, newtelligence.DasBlog.Web.Services"/>
  175. <add verb="*" path="deleteItem.ashx" type="newtelligence.DasBlog.Web.Services.DeleteItemHandler, newtelligence.DasBlog.Web.Services"/>
  176. <add verb="*" path="approveItem.ashx" type="newtelligence.DasBlog.Web.Services.ApproveItemHandler, newtelligence.DasBlog.Web.Services"/>
  177. <add verb="*" path="cdf.ashx" type="newtelligence.DasBlog.Web.Services.CdfHandler, newtelligence.DasBlog.Web.Services"/>
  178. <add verb="*" path="blogger.aspx" type="newtelligence.DasBlog.Web.Services.BloggerAPI, newtelligence.DasBlog.Web.Services"/>
  179. <add verb="*" path="pingback.aspx" type="newtelligence.DasBlog.Web.Services.PingbackAPI, newtelligence.DasBlog.Web.Services"/>
  180. <add verb="*" path="trackback.aspx" type="newtelligence.DasBlog.Web.Services.TrackbackHandler, newtelligence.DasBlog.Web.Services"/>
  181. <add verb="*" path="autoSaveEntry.ashx" type="newtelligence.DasBlog.Web.Services.AutoSaveEntryHandler, newtelligence.DasBlog.Web.Services"/>
  182. <add verb="*" path="microsummary.ashx" type="newtelligence.DasBlog.Web.Services.MicrosummaryHandler, newtelligence.DasBlog.Web.Services"/>
  183. <add verb="GET" path="googleSitemap.ashx" type="newtelligence.DasBlog.Web.Services.GoogleSitemapHandler, newtelligence.DasBlog.Web.Services"/>
  184. <add verb="GET" path="timeline.ashx" type="newtelligence.DasBlog.Web.Services.TimelineHandler, newtelligence.DasBlog.Web.Services"/>
  185. <add verb="*" path="*.blogtemplate" type="System.Web.HttpForbiddenHandler"/>
  186. </httpHandlers>
  187. <webServices>
  188. <protocols>
  189. <add name="HttpGet"/>
  190. </protocols>
  191. </webServices>
  192. <httpModules>
  193. <add type="newtelligence.DasBlog.Web.Core.UrlMapperModule, newtelligence.DasBlog.Web.Core" name="UrlMapperModule"/>
  194. <add type="newtelligence.DasBlog.Web.Core.TitleMapperModule, newtelligence.DasBlog.Web.Core" name="TitleMapperModule"/>
  195. <add type="newtelligence.DasBlog.Web.Core.ProfileMapperModule, newtelligence.DasBlog.Web.Core" name="ProfileMapperModule"/>
  196. <add type="newtelligence.DasBlog.Web.Core.WebControls.ControlImageModule, newtelligence.DasBlog.Web.Core" name="ControlImageModule"/>
  197. <add type="blowery.Web.HttpCompress.HttpModule, blowery.web.HttpCompress" name="CompressionModule"/>
  198. <add type="newtelligence.DasBlog.Web.Core.IPBlackList, newtelligence.DasBlog.Web.Core" name="IPBlackList"/>
  199. </httpModules>
  200. <!-- <xhtmlConformance mode="Legacy"/> -->
  201. </system.web>
  202. <system.webServer>
  203. <defaultDocument enabled="true">
  204. <files>
  205. <remove value="default.aspx"/>
  206. <add value="default.aspx"/>
  207. </files>
  208. </defaultDocument>
  209. <directoryBrowse enabled="false"/>
  210. <handlers>
  211. <add name="*.blogtemplate_*" path="*.blogtemplate" verb="*" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode,runtimeVersionv2.0"/>
  212. <add name="timeline.ashx_GET" path="timeline.ashx" verb="GET" type="newtelligence.DasBlog.Web.Services.TimelineHandler, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  213. <add name="googleSitemap.ashx_GET" path="googleSitemap.ashx" verb="GET" type="newtelligence.DasBlog.Web.Services.GoogleSitemapHandler, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  214. <add name="microsummary.ashx_*" path="microsummary.ashx" verb="*" type="newtelligence.DasBlog.Web.Services.MicrosummaryHandler, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  215. <add name="autoSaveEntry.ashx_*" path="autoSaveEntry.ashx" verb="*" type="newtelligence.DasBlog.Web.Services.AutoSaveEntryHandler, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  216. <add name="trackback.aspx_*" path="trackback.aspx" verb="*" type="newtelligence.DasBlog.Web.Services.TrackbackHandler, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  217. <add name="pingback.aspx_*" path="pingback.aspx" verb="*" type="newtelligence.DasBlog.Web.Services.PingbackAPI, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  218. <add name="blogger.aspx_*" path="blogger.aspx" verb="*" type="newtelligence.DasBlog.Web.Services.BloggerAPI, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  219. <add name="cdf.ashx_*" path="cdf.ashx" verb="*" type="newtelligence.DasBlog.Web.Services.CdfHandler, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  220. <add name="approveItem.ashx_*" path="approveItem.ashx" verb="*" type="newtelligence.DasBlog.Web.Services.ApproveItemHandler, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  221. <add name="deleteItem.ashx_*" path="deleteItem.ashx" verb="*" type="newtelligence.DasBlog.Web.Services.DeleteItemHandler, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  222. <add name="cptrk.ashx_*" path="cptrk.ashx" verb="*" type="newtelligence.DasBlog.Web.Services.CrosspostReferrerHandler, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  223. <add name="ct.ashx_*" path="ct.ashx" verb="*" type="newtelligence.DasBlog.Web.Services.ClickThroughHandler, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  224. <add name="aggbug.ashx_*" path="aggbug.ashx" verb="*" type="newtelligence.DasBlog.Web.Services.AggregatorBugHandler, newtelligence.DasBlog.Web.Services" preCondition="integratedMode,runtimeVersionv2.0"/>
  225. <add name="CaptchaImage.aspx_GET" path="CaptchaImage.aspx" verb="GET" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha" preCondition="integratedMode,runtimeVersionv2.0"/>
  226. </handlers>
  227. <modules>
  228. <add name="UrlMapperModule" type="newtelligence.DasBlog.Web.Core.UrlMapperModule, newtelligence.DasBlog.Web.Core" preCondition="managedHandler"/>
  229. <add name="TitleMapperModule" type="newtelligence.DasBlog.Web.Core.TitleMapperModule, newtelligence.DasBlog.Web.Core" preCondition="managedHandler"/>
  230. <add name="ProfileMapperModule" type="newtelligence.DasBlog.Web.Core.ProfileMapperModule, newtelligence.DasBlog.Web.Core" preCondition="managedHandler"/>
  231. <add name="ControlImageModule" type="newtelligence.DasBlog.Web.Core.WebControls.ControlImageModule, newtelligence.DasBlog.Web.Core" preCondition="managedHandler"/>
  232. <add name="CompressionModule" type="blowery.Web.HttpCompress.HttpModule, blowery.web.HttpCompress" preCondition="managedHandler"/>
  233. <add name="IPBlackList" type="newtelligence.DasBlog.Web.Core.IPBlackList, newtelligence.DasBlog.Web.Core" preCondition="managedHandler"/>
  234. </modules>
  235. <validation validateIntegratedModeConfiguration="false"/>
  236. </system.webServer>
  237. </configuration>