Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. <rewrite>
  2. <outboundRules>
  3. <rule name="RewriteHostName" preCondition="ResponseIsHtml" enabled="true" stopProcessing="true">
  4. <match filterByTags="A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern="sharepoint.domain.local(.*)" />
  5. <action type="Rewrite" value="team.domain.com{R:1}" />
  6. </rule>
  7. <preConditions>
  8. <preCondition name="ResponseIsHtml">
  9. <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
  10. </preCondition>
  11. </preConditions>
  12. </outboundRules>
  13. <rules>
  14. <clear />
  15. <rule name="HTTP to HTTPS redirect" enabled="true" stopProcessing="true">
  16. <match url="(.*)" />
  17. <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
  18. <add input="{HTTPS}" pattern="off" />
  19. </conditions>
  20. <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
  21. </rule>
  22. <rule name="TFS SharePoint redirect" enabled="true" stopProcessing="true">
  23. <match url="(tfsp$|tfsp/$|sites/tfs/$)" />
  24. <action type="Redirect" url="http://team.domain.com/sites/tfs/default.aspx" appendQueryString="false" redirectType="Permanent" />
  25. </rule>
  26. <rule name="TFS SharePoint rewrite" enabled="true" stopProcessing="true">
  27. <match url="sites/tfs/(.*)|(Web|Script)Resource.axd(.*)|_layouts(.*)|_vti_bin(.*)" />
  28. <action type="Rewrite" url="https://sharepoint.domain.local/{R:0}" appendQueryString="true" />
  29. <serverVariables>
  30. <set name="HTTP_ACCEPT_ENCODING" value="" />
  31. </serverVariables>
  32. </rule>
  33. <rule name="RS SharePoint rewrite" enabled="true" stopProcessing="true">
  34. <match url="^ReportServer_TFS(.*)" />
  35. <action type="Rewrite" url="http://db/{R:0}" appendQueryString="true" />
  36. <serverVariables>
  37. <set name="HTTP_ACCEPT_ENCODING" value="" />
  38. </serverVariables>
  39. </rule>
  40. <rule name="TFS" enabled="true" stopProcessing="true">
  41. <match url="^tfs(.*)" />
  42. <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
  43. <action type="Rewrite" url="http://server3:8080/{R:0}" />
  44. <serverVariables>
  45. <set name="HTTP_ACCEPT_ENCODING" value="" />
  46. </serverVariables>
  47. </rule>
  48. </rules>
  49. </rewrite>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement