machine.config 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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" type="System.Web.Configuration.HttpHandlersSectionHandler, System.Web" />
  8. <section name="httpModules" type="System.Web.Configuration.HttpModulesConfigurationHandler, System.Web" />
  9. <section name="machineKey" type="System.Web.Configuration.MachineKeyConfigHandler, System.Web" />
  10. <section name="authentication" type="System.Web.Configuration.AuthenticationConfigHandler, System.Web" />
  11. </sectionGroup>
  12. </configSections>
  13. <system.web>
  14. <httpHandlers>
  15. <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" />
  16. <add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler" />
  17. <add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler" />
  18. <add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler" />
  19. <add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler" />
  20. <add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler" />
  21. </httpHandlers>
  22. <httpModules>
  23. <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
  24. </httpModules>
  25. <authentication mode="Forms">
  26. <forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
  27. <credentials passwordFormat="Clear">
  28. <!--<user name="gonzalo" password="gonz"/>-->
  29. </credentials>
  30. </forms>
  31. </authentication>
  32. <machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
  33. </system.web>
  34. <appSettings>
  35. <!--<add key="yourkey" value="your value" /> -->
  36. <!--<remove key="a key defined higher in the hierarchy" /> -->
  37. <!--<clear/> Removes all defined settings -->
  38. </appSettings>
  39. <system.diagnostics>
  40. <trace autoflush="false" indentsize="4" />
  41. </system.diagnostics>
  42. </configuration>