On 3/30/2016 5:45 AM, Bram Van Dam wrote:
> It looks like the "-h" parameter isn't being processed correctly. I want
> Solr to listen on 127.0.0.1, but instead it binds to all interfaces. Am
> I doing something wrong? Or am I misinterpreting what the -h parameter
> is for?

The host parameter does not control binding to network interfaces.  It
controls what hostname is published to zookeeper when running in cloud mode.

Solr's networking is provided by a third-party application -- the
servlet container.  In 5.x, we took steps to ensure that the container
everyone uses is Jetty.  The default Jetty configuration supplied with
Solr will bind to all interfaces.  If you want to control interface
binding, you need to edit the Jetty config, in server/etc.  The file
most likely to need changes is server/etc/jetty.xml.

The folliwing URL contains Jetty's documentation on how to configure the
networking.  Right now this URL applies to version 9, used in Solr 5.x:

http://www.eclipse.org/jetty/documentation/current/configuring-connectors.html

Thanks,
Shawn

Reply via email to