title: Tomcat 8.5 - 403 Access Denied
body: <p>I've created a virtual machine with Ubuntu 16.04 LTS and, following <a href="https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-16-04" rel="nofollow noreferrer">this guide</a>, I've installed <a href="http://192.168.1.124:8080/docs/index.html" rel="nofollow noreferrer">Tomcat 8.5</a> and configured as follows:</p>
  
  <p><strong>/opt/tomcat/webapps/host-manager/META-INF/context.xml</strong>:</p>
  
  <pre><code>&lt;Context antiResourceLocking="false" privileged="true"&gt;
    &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve"
           allow="192\.168\.1\.124|127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" /&gt;    
  &lt;/Context&gt;
  &lt;!-- my local ip is 192.168.1.124 so I've added it --&gt;
  </code></pre>
  
  <p><strong>/opt/tomcat/conf/tomcat-users.xml</strong></p>
  
  <pre><code>&lt;role rolename="manager-gui" /&gt;
  &lt;role rolename="admin-gui" /&gt;
  &lt;user username="myuser" password="MyPass123#" roles="manager-gui,admin-gui" /&gt;
  </code></pre>
  
  <p>No other configuration files has been modified.</p>
  
  <p>The problem comes out when I try to access to the manager interface from my browser, it doesn't ask me any kind of credentials and throws me a 403 (Access Denied) error.</p>
  
  <p>How can I fix this problem?</p>