Tomcat7限制管理器的IP地址

时间:2013-06-29 23:38:53

标签: tomcat tomcat7 tomcat-manager

我正在尝试限制对经理应用的访问,但这不起作用。

<?xml version='1.0' encoding='utf-8'?>
<Context>

    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>

    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!--
    <Manager pathname="" />
    -->

    <!-- Uncomment this to enable Comet connection tacking (provides events
         on session expiration as well as webapp lifecycle) -->
    <!--
    <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
    -->
<Context path="/manager" privileged="true" docBase="/usr/share/tomcat7/webapps/manager">
 <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="123\.123\.123\.123"/>
</Context>




</Context>

0 个答案:

没有答案