Skip to content

Commit

Permalink
Rewriting AlwaysOn pings to admin ping endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocav committed Feb 11, 2019
1 parent 9894dd5 commit d9f97de
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/WebJobs.Script.WebHost/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
<requestLimits maxQueryString="4096" maxUrl="8192" maxAllowedContentLength="104857600"/>
</requestFiltering>
</security>
<rewrite>
<rules>
<rule name="AlwaysOn Ping Rewrite" stopProcessing="true">
<match url="^$" />
<conditions>
<add input="{HTTP_USER_AGENT}" pattern="^AlwaysOn$" />
</conditions>
<action type="Rewrite" url="/admin/host/ping" />
</rule>
</rules>
</rewrite>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
Expand Down

0 comments on commit d9f97de

Please sign in to comment.