Tomcat 8.5 manager webapp 403 Access Denied
程序员文章站
2022-05-29 21:37:48
...
vim $CATALINA_HOME/conf/tomcat-users.xml
增加
<role rolename="manager-gui"/>
<user username="tomcat" password="xxx" roles="manager-gui"/>
vim $CATALINA_HOME/webapps/manager/META-INF/context.xml
注释ip的限制
<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" />
-->
<Manager sessionAttributeValueClassNameFilter="java\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1)?|java\.util\.(?:Linked)?HashMap"/>
</Context>