web.config 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <defaultDocument>
  5. <files>
  6. <remove value="iisstart.htm" />
  7. <remove value="index.htm" />
  8. <remove value="Default.asp" />
  9. <remove value="Default.htm" />
  10. </files>
  11. </defaultDocument>
  12. <rewrite>
  13. <rules>
  14. <clear />
  15. <rule name="json" stopProcessing="true">
  16. <match url="^(\d\d?\.\d\d?).+/(.+\.json)$" />
  17. <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
  18. <action type="Rewrite" url="{R:1}/{R:2}" />
  19. </rule>
  20. <rule name="login" enabled="true" stopProcessing="true">
  21. <match url="^$" />
  22. <action type="None" />
  23. </rule>
  24. <rule name="pdf-tech" enabled="true" stopProcessing="true">
  25. <match url="^pdf-tech(.*)" />
  26. <action type="Rewrite" url="http://192.168.10.128:8032/pdf-tech{R:1}" logRewrittenUrl="true" />
  27. </rule>
  28. <rule name="index" enabled="true">
  29. <match url="^(.*)$" ignoreCase="false" />
  30. <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
  31. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  32. <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
  33. </conditions>
  34. <action type="Rewrite" url="index.html?{R:1}" appendQueryString="true" />
  35. </rule>
  36. </rules>
  37. <outboundRules>
  38. <rule name="Add the STS header in HTTPS responses">
  39. <match serverVariable="RESPONSE_Strict_Transport_Security" pattern=".*" />
  40. <conditions>
  41. <add input="{HTTPS}" pattern="on" />
  42. </conditions>
  43. <action type="Rewrite" value="max-age=31536000" />
  44. </rule>
  45. </outboundRules>
  46. </rewrite>
  47. <security>
  48. <requestFiltering removeServerHeader="true" />
  49. </security>
  50. </system.webServer>
  51. </configuration>