2003-06-29 Miguel de Icaza <miguel@ximian.com>
[mono.git] / data / machine.config
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <configuration>
4
5         <configSections>
6                 <section name="appSettings" type="System.Configuration.NameValueFileSectionHandler, System" />
7
8                 <section name="system.diagnostics" type="System.Diagnostics.DiagnosticsConfigurationHandler, System" />
9                 <sectionGroup name="system.web">
10                         <section name="httpHandlers"
11                                  type="System.Web.Configuration.HttpHandlersSectionHandler, System.Web" />
12                         <section name="httpModules"
13                                  type="System.Web.Configuration.HttpModulesConfigurationHandler, System.Web" />
14                         <section name="machineKey"
15                                  type="System.Web.Configuration.MachineKeyConfigHandler, System.Web" />
16                         <section name="authentication"
17                                  type="System.Web.Configuration.AuthenticationConfigHandler, System.Web" />
18                         <section name="authorization"
19                                  type="System.Web.Configuration.AuthorizationConfigHandler, System.Web" />
20                         <section name="globalization"
21                                  type="System.Web.Configuration.GlobalizationConfigurationHandler, System.Web" />
22                         <section name="sessionState"
23                                  type="System.Web.SessionState.SessionStateSectionHandler, System.Web" />
24                 </sectionGroup>
25                 <sectionGroup name="system.net">
26                         <section name="connectionManagement"
27                                  type="System.Net.Configuration.ConnectionManagementHandler, System" />
28                         <section name="authenticationModules"
29                                  type="System.Net.Configuration.NetAuthenticationModuleHandler, System" />
30                         <section name="defaultProxy"
31                                  type="System.Net.Configuration.DefaultProxyHandler, System" />
32                         <section name="webRequestModules"
33                                  type="System.Net.Configuration.WebRequestModuleHandler, System" />
34                 </sectionGroup>
35         </configSections>
36         <system.net>
37                 <connectionManagement>
38                         <add address="*" maxconnection="2" />
39                 </connectionManagement>
40                 <authenticationModules>
41                         <add type="System.Net.BasicClient" />
42                 </authenticationModules>
43                 <defaultProxy>
44                         <proxy />
45                         <!-- bypassonlocal and proxyaddress are ok -->
46                         <!-- usessystemdefault is not supported -->
47                 </defaultProxy>
48                 <webRequestModules>
49                         <add prefix="http" type="System.Net.HttpRequestCreator, System" />
50                         <add prefix="https" type="System.Net.HttpRequestCreator, System" />
51                         <add prefix="file" type="System.Net.FileWebRequestCreator, System" />
52                 </webRequestModules>
53         </system.net>
54         <system.web>
55                 <httpHandlers>
56                         <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web" />
57                         <add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web" />
58                         <add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web" />
59                         <add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web" />
60                         <add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web" />
61                         <add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web" />
62                 </httpHandlers>
63                 <httpModules>
64                         <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web" />
65                         <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web" />
66                         <add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web" />
67                 </httpModules>
68                 <authentication mode="Forms">
69                         <forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
70                                 <credentials passwordFormat="Clear">
71                                         <!--<user name="gonzalo" password="gonz"/>-->
72                                 </credentials>
73                         </forms>
74                 </authentication>
75                 <machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
76                 <!-- Sample globalization settings
77                 <globalization  requestEncoding="iso-8859-1"
78                                 responseEncoding="iso-8859-1"
79                                 fileEncoding="iso-8859-1" 
80                                 culture="en-US"
81                                 uiculture="en-US" />
82                 -->
83                 <sessionState mode="InProc" />
84         </system.web>
85         
86         <appSettings>
87         <!--<add key="yourkey" value="your value" /> -->
88         <!--<remove key="a key defined higher in the hierarchy" /> -->
89         <!--<clear/> Removes all defined settings -->
90         </appSettings>
91         <system.diagnostics>
92                 <trace autoflush="false" indentsize="4" />
93         </system.diagnostics>
94 </configuration>
95