如何解决Tomcat服务器打开不了HOST Manager的问题(终极之道)

http://blog.csdn.net/weixian52034/article/details/53218584

<role rolename=“admin”/>

<role rolename=“admin-gui”/>

<role rolename=“admin-script”/>

<role rolename=“manager-gui”/>

<role rolename=“manager-script”/>

<role rolename=“manager-jmx”/>

<role rolename=“manager-status”/>

<user username=“admin” password=“admin” roles=“admin,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status”/>

 

在修改了 tomcat-users.xml 后 还需要修改 webapps/host-manager/METE-INFO/context.xml

<Context antiResourceLocking=”false” privileged=”true” > <Valve className=”org.apache.catalina.valves.RemoteAddrValve” allow=”^.*$” /> </Context>

特别是 allow=”^.*$”  这样就可以访问host-manager了

 

https://zhuanlan.zhihu.com/p/27907226