machine.config 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. </sectionGroup>
  22. </configSections>
  23. <system.web>
  24. <httpHandlers>
  25. <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web" />
  26. <add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web" />
  27. <add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web" />
  28. <add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web" />
  29. <add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web" />
  30. <add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web" />
  31. </httpHandlers>
  32. <httpModules>
  33. <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web" />
  34. <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web" />
  35. <add name="SessionStateModule" type="System.Web.SessionState.SessionStateModule, System.Web" />
  36. </httpModules>
  37. <authentication mode="Forms">
  38. <forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
  39. <credentials passwordFormat="Clear">
  40. <!--<user name="gonzalo" password="gonz"/>-->
  41. </credentials>
  42. </forms>
  43. </authentication>
  44. <machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
  45. <!-- Sample globalization settings
  46. <globalization requestEncoding="iso-8859-1"
  47. responseEncoding="iso-8859-1"
  48. fileEncoding="iso-8859-1"
  49. culture="en-US"
  50. uiculture="en-US" />
  51. -->
  52. <sessionState mode="InProc" />
  53. </system.web>
  54. <appSettings>
  55. <!--<add key="yourkey" value="your value" /> -->
  56. <!--<remove key="a key defined higher in the hierarchy" /> -->
  57. <!--<clear/> Removes all defined settings -->
  58. </appSettings>
  59. <system.diagnostics>
  60. <trace autoflush="false" indentsize="4" />
  61. </system.diagnostics>
  62. </configuration>