shashuec
shashuec

Reputation: 694

Not allowing calls to solr outside localhost

I want to not allowing calls to solr which are not coming from localhost.I am using jetty.

Thanks, Shashwat

Upvotes: 0

Views: 584

Answers (2)

ulrich
ulrich

Reputation: 1593

For solr-5.2.1 I did

edit /solr/solr.in.sh
add SOLR_OPTS="$SOLR_OPTS -Djetty.host=localhost" 

from http://foswiki.org/Extensions/SolrPlugin#Installation successfully.

Upvotes: 0

Aaron Saunders
Aaron Saunders

Reputation: 33345

this is how you config Jetty to just use localhost

<Call name="addConnector"> 
    <Set name="Host">127.0.0.1</Set> 
    ....
</Call>

Upvotes: 1

Related Questions