<p class="MsoNormal"></p><p class="MsoNoSpacing">Hi all, </p>
<p class="MsoNoSpacing">I have a location directive with basic auth in it. </p>
<p class="MsoNoSpacing"> location /
{</p>
<p class="MsoNoSpacing"> auth_basic "Admin Login";</p>
<p class="MsoNoSpacing"> auth_basic_user_file /etc/nginx/.htpasswd; </p>
<p class="MsoNoSpacing">How do I specify a rule such that the basic auth is
applied only to external IPs and not to 127.0.0.x, 192.0.x & 10.0.x?</p>
<p class="MsoNoSpacing">I run Jenkins from a sub-domain and my git post-commit-hook
needs to hit a URL under this location directive to trigger continuous
integration. But this Jenkins cannot handle basic auth that blocks the URL submit. </p><p class="MsoNoSpacing">-Quintin </p><p></p>