Minor style changes
[castle.git] / MonoRail / TestSiteNVelocity / web.config
blob6ca6a7b210be1ff15c84d17972c5973f1308a346
1 <?xml version="1.0" encoding="utf-8" ?>
2 <configuration>
3 <configSections>
4 <section name="monorail" type="Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler, Castle.MonoRail.Framework" />
5 <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
6 </configSections>
8 <monorail>
9 <!--
10 <services>
11 <service
12 id="Custom"
13 interface="Castle.Core.Logging.ILoggerFactory, Castle.Core"
14 type="Castle.Services.Logging.Log4netIntegration.Log4netFactory, Castle.Services.Logging.Log4netIntegration" />
15 </services>
16 -->
18 <controllers>
19 <assembly>TestSiteNVelocity</assembly>
20 </controllers>
22 <viewEngines viewPathRoot="views">
23 <add type="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine, Castle.MonoRail.Framework.Views.NVelocity" xhtml="false" />
24 </viewEngines>
26 <routing>
27 <rule>
28 <pattern>(/blog/posts/)(\d+)/(\d+)/(.)*$</pattern>
29 <replace><![CDATA[ /blog/view.rails?year=$2&month=$3 ]]></replace>
30 </rule>
31 <rule>
32 <pattern>(/news/)(\d+)/(\d+)/(.)*$</pattern>
33 <replace><![CDATA[ /news/view.rails?year=$2&month=$3 ]]></replace>
34 </rule>
35 </routing>
36 </monorail>
38 <system.web>
39 <compilation defaultLanguage="C#" debug="false" />
40 <trace enabled="false" pageOutput="false" requestLimit="15" />
41 <httpHandlers>
42 <add verb="*" path="*.rails" type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory, Castle.MonoRail.Framework" />
43 </httpHandlers>
44 <httpModules>
45 <add name="routing" type="Castle.MonoRail.Framework.RoutingModule, Castle.MonoRail.Framework" />
46 <add name="monorail" type="Castle.MonoRail.Framework.EngineContextModule, Castle.MonoRail.Framework" />
47 </httpModules>
48 <pages validateRequest="true" />
49 <globalization culture="en-US" uiCulture="en-US"/>
50 </system.web>
51 </configuration>