nescafe2002

web.config for SCM-Manager 1.40 on Windows Azure

Sep 27th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.36 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3.   <system.webServer>
  4.     <security>
  5.       <requestFiltering allowDoubleEscaping="true">
  6.         <fileExtensions allowUnlisted="true" applyToWebDAV="true">
  7.           <clear />
  8.         </fileExtensions>
  9.         <requestLimits maxAllowedContentLength="4294967295" />
  10.         <verbs allowUnlisted="true" applyToWebDAV="true" />
  11.         <hiddenSegments applyToWebDAV="true">
  12.           <clear />
  13.         </hiddenSegments>
  14.       </requestFiltering>
  15.     </security>
  16.     <rewrite>
  17.       <rules>
  18.         <rule name="HTTP to HTTPS redirect">
  19.           <match url="(.*)" />
  20.           <conditions>
  21.             <add input="{HTTPS}" pattern="off" ignoreCase="true" />
  22.           </conditions>
  23.           <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
  24.         </rule>
  25.         <rule name="HTTP_Destination rewrite" stopProcessing="true">
  26.           <match url="(.*)" />
  27.           <conditions>
  28.             <add input="{REQUEST_METHOD}" pattern="MOVE|COPY" />
  29.             <add input="{HTTP_Destination}" pattern="^https://(.+)$" />
  30.           </conditions>
  31.           <serverVariables>
  32.             <set name="HTTP_Destination" value="http://{C:1}" />
  33.           </serverVariables>
  34.           <action />
  35.         </rule>
  36.       </rules>
  37.     </rewrite>
  38.   </system.webServer>
  39. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment