Wednesday, July 6, 2022

Tomcat: 403 access denied on manager


Problem:

403 Access Denied on Tomcat manager page: http://localhost/manager/html

 

Solution:

1. Go to /path/to/tomcat/webapp/manager/META-INF

2. Edit file context.xml, and remove/comment-out the following lines:

  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
        allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />

3. Save context.xml

4. Restart Tomcat.

No comments:

 
Get This <