tomcat management page 403 Access Denied
After installing tomcat, after configuring the tomcat environment variable, visit the manager app page and a 403 Access Denied error appears.
Solution
as follows:
First of allconf/In the file,</tomcat-users>FrontAdd to
The following code:
<role rolename="manager-gui"/> <user password="admin" roles="manager-gui" username="tomcat"/>
Then restart tomcat and revisit the manager app page
If a 403 Access Denied error still appears at this time, then the IP address you access is restricted
We open/webapps/manager/META-INF/ directory file,Not a file under conf/ directory, don't make a mistake
We'll get the contents insideComment out or modifyfor
<Valve className="" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1|\d+\.\d+\.\d+\.\d+" />
Save, then restart tomcat and revisit the manager app page
OK, the problem has been solved.
Summarize
The above is personal experience. I hope you can give you a reference and I hope you can support me more.