Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Where to put <Valve className="org.apache.catalina.valves.RemoteAddrValve"...

    • Article Type: Q&A
    • Product: Aleph
    • Product Version: 22

    Question

    We configure tomcat on Aleph to accept requests only from specific IP addresses.
    Where exactly in file $aleph_dev/ng/aleph/home/system/thirdparty/tomcat/conf/server.xml should we put this new line:
    <Valve className="org.apache.catalina.valves.RemoteAddrValve"
    allow="192.168.250.10,127.0.0.1"/>

    Answer

    Line
    <Valve className="org.apache.catalina.valves.RemoteAddrValve"
    allow="192.168.250.10,127.0.0.1"/>
    should be put in the Host-section of the file somewhere between the lines
    <Host name="localhost"...

    and

    </Host>


    • Article last edited: 10/7/2014