Friday, April 17, 2020

403 Access Denied in Tomcat Host-manage webapp

Description: 403 Access Denied in Tomcat in Manager and host-manage webapp

Procedure: Here I have explained how to add user for host-manage and manager webapp
  • Go to /opt/tomcat/webapps/host-manager/META-INF open context.xml comment everything in context tag example:

<Context antiResourceLocking="false" privileged="true" >
     <!--Valve className="org.apache.catalina.valves.RemoteAddrValve"
            allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" /-->
   </Context>
  • Open /opt/tomcat/conf/tomcat-users.xml and add user details as follow:


<user username="admin" password="Password of admin" roles="admin-gui,manager-gui,manager-script" />




  • Restart tomcat service and verify by browse http://IPADDRESS:8080/host-manager
  • No comments:

    Post a Comment