Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <location path="" overrideMode="Deny">
- </location>
- <system.webServer>
- <security>
- <requestFiltering allowDoubleEscaping="true" />
- </security>
- <rewrite>
- <rules>
- <clear />
- <rule name="Redirect to HTTPS" enabled="true" stopProcessing="true">
- <match url="(.*)" />
- <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
- <add input="{HTTPS}" pattern="^OFF$" />
- </conditions>
- <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
- </rule>
- <rule name="seafilehttp" enabled="true" stopProcessing="true">
- <match url="seafhttp/(.*)" />
- <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
- <action type="Rewrite" url="http://127.0.0.1:8082/{R:1}" appendQueryString="true" logRewrittenUrl="true" />
- </rule>
- <rule name="seafile" enabled="true" stopProcessing="true">
- <match url="(.*)" />
- <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
- <action type="Rewrite" url="http://127.0.0.1:8000/{R:1}" appendQueryString="true" logRewrittenUrl="true" />
- </rule>
- </rules>
- <outboundRules>
- <preConditions>
- <preCondition name="ResponseIsHtml1">
- <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
- </preCondition>
- </preConditions>
- </outboundRules>
- </rewrite>
- <httpErrors errorMode="DetailedLocalOnly" />
- </system.webServer>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement