NIHVIVO-2812 Restrict access to Solr webapp, so it can only be accessed by a client on the same machine.

This commit is contained in:
j2blake 2011-07-11 21:44:26 +00:00
parent b2ce6fb0e6
commit d53ac74350

View file

@ -1,6 +1,12 @@
<Context docBase="${solr.docbase}" <Context docBase="${solr.docbase}"
crossContext="true" override="true"> crossContext="true" override="true">
<!-- For security, restrict access to clients on this machine
for IPv4 requests, localhost is 127.0.0.1
for IPv6 requests, localhost is 0:0:0:0:0:0:0:1 -->
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.0\.0\.1,0:0:0:0:0:0:0:1"/>
<Environment <Environment
type="java.lang.String" type="java.lang.String"
name="solr/home" name="solr/home"