Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Apache Solr

I've been experimenting with Apache SOLR and I'm ready to integrate it with a rails application. However, I'd like to make sure I know how to deploy solr. I currently have the rails application deployed using passenger+nginx. Is it possible to deploy SOLR using nginx as well? If so, how would I do that? Otherwise, what is the preferred method of deployment? Thanks!

like image 789
Silverbolt Avatar asked Aug 02 '26 15:08

Silverbolt


1 Answers

Solr needs to run in a Java EE application server. You can use Jetty or Tomcat. Nginx will act as a proxy via AJP or something simliar to forward all RESTless request to Solr. I haven't used my ajp with nginx but I have read about this. Essentially you will have a Java EE application server, Rails server, nginx, passenger and ajp proxy running all at the same time.

You can also setup a proxy pass and there is a tutorial here. Explore different options to see which one is bet for you.

like image 172
Amir Raminfar Avatar answered Aug 05 '26 09:08

Amir Raminfar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!