Advertisement
Johnnii360

web.config

Oct 14th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.41 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3.  <location path="" overrideMode="Deny">
  4.  </location>
  5.  <system.webServer>
  6.  <security>
  7.  <requestFiltering allowDoubleEscaping="true" />
  8.  </security>
  9.  <rewrite>
  10.  <rules>
  11.  <clear />
  12.  <rule name="Redirect to HTTPS" enabled="true" stopProcessing="true">
  13.  <match url="(.*)" />
  14.  <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
  15.                         <add input="{HTTPS}" pattern="^OFF$" />
  16.  </conditions>
  17.  <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
  18.  </rule>
  19.  <rule name="seafilehttp" enabled="true" stopProcessing="true">
  20.  <match url="seafhttp/(.*)" />
  21.  <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
  22.  <action type="Rewrite" url="http://127.0.0.1:8082/{R:1}" appendQueryString="true" logRewrittenUrl="true" />
  23.  </rule>
  24.  <rule name="seafile" enabled="true" stopProcessing="true">
  25.  <match url="(.*)" />
  26.  <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
  27.  <action type="Rewrite" url="http://127.0.0.1:8000/{R:1}" appendQueryString="true" logRewrittenUrl="true" />
  28.  </rule>
  29.  
  30.  </rules>
  31.  <outboundRules>
  32.  <preConditions>
  33.  <preCondition name="ResponseIsHtml1">
  34.  <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
  35.  </preCondition>
  36.  </preConditions>
  37.  </outboundRules>
  38.  </rewrite>
  39.  <httpErrors errorMode="DetailedLocalOnly" />
  40.  </system.webServer>
  41. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement