Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

48 řádky
1.8KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <!--
  5. No hiddenSegments needed here: Framework/, Controllers/, tests/,
  6. tools/, docs/, and logs/ all live as siblings OUTSIDE this "public"
  7. folder, which is IIS's entire site physical path. There is no code
  8. path by which IIS could serve them, regardless of web.config -
  9. physical separation, not a filtering rule, is what protects them. See
  10. docs/ARCHITECTURE.md / docs/DECISIONS.md. The extension denylist below
  11. is kept only as cheap defense-in-depth against a stray file someday
  12. landing directly inside public/ by mistake.
  13. -->
  14. <security>
  15. <requestFiltering>
  16. <fileExtensions>
  17. <add fileExtension=".wsc" allowed="false" />
  18. <add fileExtension=".vbs" allowed="false" />
  19. <add fileExtension=".ps1" allowed="false" />
  20. <add fileExtension=".md" allowed="false" />
  21. </fileExtensions>
  22. </requestFiltering>
  23. </security>
  24. <!--
  25. No /self-test rewrite rule on this (production) site on purpose: the
  26. diagnostics endpoint is only exposed on the separate test-app/ site
  27. (see docs/ARCHITECTURE.md). Application.wsc's Run method still
  28. technically has a "/self-test" case - that's shared framework code,
  29. used by whichever site's web.config chooses to route to it - but
  30. nothing on this site's rewrite rules can ever reach it.
  31. -->
  32. <rewrite>
  33. <rules>
  34. <rule name="WscMvc-Hello" stopProcessing="true">
  35. <match url="^hello/?$" />
  36. <action type="Rewrite" url="Default.asp?route=/hello" appendQueryString="false" />
  37. </rule>
  38. </rules>
  39. </rewrite>
  40. <defaultDocument>
  41. <files>
  42. <clear />
  43. <add value="Default.asp" />
  44. </files>
  45. </defaultDocument>
  46. </system.webServer>
  47. </configuration>

Powered by TurnKey Linux.