以下設定只允許本端電腦和192.168.1.*這個子網路可以進行連線
<?xml version="1.0" encoding="UTF-8"?> <Context antiJARLocking="true" path="/yourApp"> <Valve className="org.apache.catalina.valves.RemoteHostValve" allow="127.0.0.1,192.168.1.*"/> </Context>
<?xml version="1.0" encoding="UTF-8"?> <Context antiJARLocking="true" path="/yourApp"> <Valve className="org.apache.catalina.valves.RemoteHostValve" allow="127.0.0.1,192.168.1.*"/> </Context>
沒有留言:
張貼留言