machine.config 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="appSettings" type="System.Configuration.NameValueFileSectionHandler, System" />
  5. <sectionGroup name="system.web">
  6. <section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSectionHandler, System.Web" />
  7. <section name="httpModules" type="System.Web.Configuration.HttpModulesConfigurationHandler, System.Web" />
  8. </sectionGroup>
  9. </configSections>
  10. <system.web>
  11. <httpHandlers>
  12. <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" />
  13. <add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler" />
  14. <add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler" />
  15. <add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler" />
  16. <add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler" />
  17. <add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler" />
  18. </httpHandlers>
  19. <httpModules>
  20. </httpModules>
  21. </system.web>
  22. <appSettings>
  23. <!--<add key="yourkey" value="your value" /> -->
  24. <!--<remove key="a key defined higher in the hierarchy" /> -->
  25. <!--<clear/> Removes all defined settings -->
  26. </appSettings>
  27. </configuration>