I\'m setting up Solr using Jetty. I would like to restrict access to only a few IP addresses. It doesn\'t seem immediately obvious that this can be done using Jetty. Is it p
I found the solution.
Firstly, extract the contents of solr.war in the example/webapps folder. Then create a file called .htaccess and place it in the example/webapps/solr folder (the one you just extracted) containing the following:
satisfy all
order deny,allow
deny from all
allow from xxx.xxx.xxx.xxx
In example/etc/ edit the jetty.xml file and comment out the org.mortbay.jetty.deployer.WebAppDeployer part. Then finally create a folder in example/ called contexts (if one does not yet exist) and add a file called solr.xml to it containing:
/webapps/solr
/solr
Then start up your new secure solr!