title: Allowing access based on hostname for Manager application in Tomcat
body: <p>I can't get the configuration for Tomcat right to allow access to the Manager Webapp. We have configured tomcat-users.xml, manager.xml etc. When we allow access based on the IP address it works, but based on the hostname it doesn't. This is the configuration we use:</p>
  
  <pre><code>&lt;Context privileged="true"
       docBase="/path/to/tomcat_home/webapps/manager"&gt;
    &lt;Valve className="org.apache.catalina.valves.RemoteHostValve"
       allow="localhost|otherhostname" deny="" /&gt;
    &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve"
       allow="172\.30\.\d+\.\d+|127\.0\.0\.1"/&gt;
  &lt;/Context&gt;
  </code></pre>
  
  <p>When I remove the RemoteHostValve we can access the manager app (jmxproxy).
  Any ideas?</p>
  
  <p>Regards,</p>
  
  <p>Johan-Kees</p>