欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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>
相关标签: tomcat 403