machine.config 2.6 KB

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