Allow only specific IPs access in tomcat

    xiaoxiao2021-03-25  65

    you can add the following configuration to server.xml:

    <Host name="localhost" autoDeploy="true" unpackWARs="true" appBase="webapps"> <Valve className="org.apache.catalina.valves.RemoteAddrValve" deny="" allow="127.0.0.1||192.168.0.1"/> </Host>
    转载请注明原文地址: https://ju.6miu.com/read-35547.html

    最新回复(0)