Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <system.webServer>
- <security>
- <requestFiltering allowDoubleEscaping="true">
- <fileExtensions allowUnlisted="true" applyToWebDAV="true">
- <clear />
- </fileExtensions>
- <requestLimits maxAllowedContentLength="4294967295" />
- <verbs allowUnlisted="true" applyToWebDAV="true" />
- <hiddenSegments applyToWebDAV="true">
- <clear />
- </hiddenSegments>
- </requestFiltering>
- </security>
- <rewrite>
- <rules>
- <rule name="HTTP to HTTPS redirect">
- <match url="(.*)" />
- <conditions>
- <add input="{HTTPS}" pattern="off" ignoreCase="true" />
- </conditions>
- <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
- </rule>
- <rule name="HTTP_Destination rewrite" stopProcessing="true">
- <match url="(.*)" />
- <conditions>
- <add input="{REQUEST_METHOD}" pattern="MOVE|COPY" />
- <add input="{HTTP_Destination}" pattern="^https://(.+)$" />
- </conditions>
- <serverVariables>
- <set name="HTTP_Destination" value="http://{C:1}" />
- </serverVariables>
- <action />
- </rule>
- </rules>
- </rewrite>
- </system.webServer>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment