123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <system.webServer>
- <defaultDocument>
- <files>
- <remove value="iisstart.htm" />
- <remove value="index.htm" />
- <remove value="Default.asp" />
- <remove value="Default.htm" />
- </files>
- </defaultDocument>
- <rewrite>
- <rules>
- <clear />
- <rule name="json" stopProcessing="true">
- <match url="^(\d\d?\.\d\d?).+/(.+\.json)$" />
- <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
- <action type="Rewrite" url="{R:1}/{R:2}" />
- </rule>
- <rule name="login" enabled="true" stopProcessing="true">
- <match url="^$" />
- <action type="None" />
- </rule>
- <rule name="pdf-tech" enabled="true" stopProcessing="true">
- <match url="^pdf-tech(.*)" />
- <action type="Rewrite" url="http://192.168.10.128:8032/pdf-tech{R:1}" logRewrittenUrl="true" />
- </rule>
- <rule name="index" enabled="true">
- <match url="^(.*)$" ignoreCase="false" />
- <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
- <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
- <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
- </conditions>
- <action type="Rewrite" url="index.html?{R:1}" appendQueryString="true" />
- </rule>
-
- </rules>
- <outboundRules>
- <rule name="Add the STS header in HTTPS responses">
- <match serverVariable="RESPONSE_Strict_Transport_Security" pattern=".*" />
- <conditions>
- <add input="{HTTPS}" pattern="on" />
- </conditions>
- <action type="Rewrite" value="max-age=31536000" />
- </rule>
- </outboundRules>
- </rewrite>
- <security>
- <requestFiltering removeServerHeader="true" />
- </security>
- </system.webServer>
- </configuration>
|