title: access tomcat manager from different host
body: <p>I have installed tomcat 8 in a linux server. </p>
  
  <p>From another host browser I was able to open the tomcat admin console but not able to open /manager/html.</p>
  
  <p>I have made the changes in tomcat-users.xml and manager.xml and context.html.</p>
  
  <pre><code>&lt;role rolename="manager-script"/&gt;
    &lt;role rolename="manager-jmx"/&gt;
    &lt;role rolename="manager-gui"/&gt;
    &lt;role rolename="manager-status"/&gt;
  &lt;user username="tomcat" password=“password123" roles="manager-gui"/&gt;
  </code></pre>
  
  <p>In /opt/tomcat8/apache-tomcat-8.5.8/webapps/host-manager</p>
  
  <p>the changes were made in <strong>manager.xml</strong> </p>
  
  <pre><code>&lt;Context docBase="${catalina.home}/webapps/manager"
           privileged="true" antiResourceLocking="false" &gt;
  
  &lt;Valve className="org.apache.catalina.valves.RemoteHostValve" allow="(*.).abc.corp.company.com"/
  &gt;
  &lt;/Context&gt;
  </code></pre>
  
  <p>I was getting the pop up to enter credentials to log into manager/html but the credentials were not getting validated and I am getting 401 unauthorized error.</p>
  
  <p>Please throw some light.</p>
  
  <p>Thanks</p>