machine.config 4.9 KB

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