ext">
    <p>To allow unrestricted access to port 8009, but trigger basic
    authentication if the application is accessed on another port:</p>
<div class="codeBox"><pre><code>&lt;Context&gt;
  ...
  &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve"
         addConnectorPort="true"
         invalidAuthenticationWhenDeny="true"
         allow=".*;8009"/&gt;
  &lt;Valve className="org.apache.catalina.authenticator.BasicAuthenticator" /&gt;
  ...
&lt;/Context&gt;</code></pre></div>
  </div></di