Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Tomcat 9 unable to access manager webapp

Tags:

apache

tomcat

I successfully install Apache Tomcat 9 and I access at servername:8080.

I follow documentation in order to access the manager web app and :

  • open $CATALINA_HOME/conf/tomcat-user.xml
  • add <role rolename="manager-gui"/>
  • add <user username="tomcat" password="s3cret" roles="manager-gui"/>
  • $CATALINA_HOME/bin/catalina.sh stop
  • check servername:8080 is down
  • $CATALINA_HOME/bin/catalina.sh start
  • check servername:8080 is up
  • servername:8080/manager/html return HTTP Status 403 – Forbidden

I can't find what config I am missing and will be greateful for any kind of help or suggestion.

like image 581
AlexMI Avatar asked Apr 05 '17 13:04

AlexMI


People also ask

How do I open Tomcat web application Manager?

Using the Web. Let's open http://localhost:8080/manager/html/ to view the Tomcat Manager App webpage.

How do I access Tomcat 9 Admin GUI from another host?

By default the Host Manager is only accessible from a browser running on the same machine as Tomcat. If you wish to modify this restriction, you'll need to edit tomcat/webapps/manager/META-INF/context. xml to allow all ips or just yours.

How do I get to the manager app in Tomcat 10?

Configuring Manager Application Access It is the directory in which you installed Tomcat, for example C:\tomcat9 , or /usr/share/tomcat9 . The Host Manager application requires a user with one of the following roles: admin-gui - use this role for the graphical web interface.


1 Answers

I wanto to share the solution I found here not in the marked answer but in the fade's answer.

Commenting the Valve attribute in CATALINA_HOME/webapps/manager/META-INF/context.xml and restarting Tomcat solve the problem and I can now assess the web manager

like image 167
AlexMI Avatar answered Oct 12 '22 01:10

AlexMI