2003-03-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / data / machine.config
index 7b01c1328e29d1905afbfbe4d37a820b89be831f..581b363978631609b9c296d520d080400718ee91 100644 (file)
@@ -1,23 +1,66 @@
 <?xml version="1.0" encoding="utf-8"?>
 
 <configuration>
+
        <configSections>
+               <section name="appSettings" type="System.Configuration.NameValueFileSectionHandler, System" />
+
+               <section name="system.diagnostics" type="System.Diagnostics.DiagnosticsConfigurationHandler, System" />
                <sectionGroup name="system.web">
-                       <section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSectionHandler, System.Web" />
-                       <section name="httpModules" type="System.Web.Configuration.HttpModulesConfigurationHandler, System.Web" />
+                       <section name="httpHandlers"
+                                type="System.Web.Configuration.HttpHandlersSectionHandler, System.Web" />
+                       <section name="httpModules"
+                                type="System.Web.Configuration.HttpModulesConfigurationHandler, System.Web" />
+                       <section name="machineKey"
+                                type="System.Web.Configuration.MachineKeyConfigHandler, System.Web" />
+                       <section name="authentication"
+                                type="System.Web.Configuration.AuthenticationConfigHandler, System.Web" />
+                       <section name="authorization"
+                                type="System.Web.Configuration.AuthorizationConfigHandler, System.Web" />
+                       <section name="globalization"
+                                type="System.Web.Configuration.GlobalizationConfigurationHandler, System.Web" />
+                       <section name="sessionState"
+                                type="System.Web.SessionState.SessionStateSectionHandler, System.Web" />
                </sectionGroup>
        </configSections>
        <system.web>
                <httpHandlers>
-                       <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" />
-                       <add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler" />
-                       <add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler" />
-                       <add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler" />
-                       <add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler" />
-                       <add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler" />
+                       <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web" />
+                       <add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web" />
+                       <add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web" />
+                       <add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web" />
+                       <add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web" />
+                       <add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web" />
                </httpHandlers>
                <httpModules>
+                       <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web" />
+                       <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web" />
                </httpModules>
+               <authentication mode="Forms">
+                       <forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
+                               <credentials passwordFormat="Clear">
+                                       <!--<user name="gonzalo" password="gonz"/>-->
+                               </credentials>
+                       </forms>
+               </authentication>
+               <machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
+               <!-- Sample globalization settings
+               <globalization  requestEncoding="iso-8859-1"
+                               responseEncoding="iso-8859-1"
+                               fileEncoding="iso-8859-1" 
+                               culture="en-US"
+                               uiculture="en-US" />
+               -->
+               <sessionState mode="InProc" />
        </system.web>
+       
+       <appSettings>
+       <!--<add key="yourkey" value="your value" /> -->
+       <!--<remove key="a key defined higher in the hierarchy" /> -->
+       <!--<clear/> Removes all defined settings -->
+       </appSettings>
+       <system.diagnostics>
+               <trace autoflush="false" indentsize="4" />
+       </system.diagnostics>
 </configuration>