title: DynamicIpSecurity wrong redirect in Azure
body: <p>I configured my web application in Azure with the <a href="http://azure.microsoft.com/blog/2013/08/27/confirming-dynamic-ip-address-restrictions-in-windows-azure-web-sites/" rel="nofollow">DynamicIpSecurity</a> feature like this :</p>
  
  <pre><code>      &lt;dynamicIpSecurity denyAction="Forbidden"&gt;
          &lt;denyByConcurrentRequests enabled="true" maxConcurrentRequests="20" /&gt;
          &lt;denyByRequestRate enabled="true" maxRequests="30" requestIntervalInMilliseconds="1000" /&gt;
        &lt;/dynamicIpSecurity&gt;
  </code></pre>
  
  <p><strong>Edit:</strong>
  I also have custom pages for HttpErros :</p>
  
  <pre><code>&lt;system.webServer&gt;
      &lt;httpErrors errorMode="Custom"&gt;
        &lt;remove statusCode="403"/&gt;
        &lt;remove statusCode="500"/&gt;
        &lt;remove statusCode="404"/&gt;
        &lt;error statusCode="404" path="/404.html" responseMode="Redirect"/&gt;
        &lt;error statusCode="403" path="/403.html" responseMode="Redirect"/&gt;
        &lt;error statusCode="500" path="/500.html" responseMode="Redirect"/&gt;
      &lt;/httpErrors&gt;
  ...
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>But the problem that it redirects my application to Azure's slot URL like :</p>
  
  <pre><code>https://my-application__9fb0/403.html
  </code></pre>
  
  <p>While it should be </p>
  
  <pre><code>https://myapplication.com/403.html
  </code></pre>
  
  <p>Which is giving "The web page in unavailable".</p>
  
  <p>Is there anyway to configure the redirect URL ? if not what should I do alternatively ? </p>