The path is set in the jetty's config file, where Solr is hosted as a webapp. You can see it in the example/contexts directory in the distribution.
Regards, Alex. ---- Sign up for my Solr resources newsletter at http://www.solr-start.com/ On 6 February 2015 at 08:15, Avanish Raju <yar...@gmail.com> wrote: > I want to serve solr as a standalone server on a specific port, and need to > change the contextRoot from /solr to / > (I need to include some health checks on / which I will add to the solr.war) > > I've tried changing my node1/solr/solr.xml's hostContext variable to > $(hostContext:) instead of $(hostContext:solr) but this didn't change > anything at http://localhost:8983/solr/. And if I go to > http://localhost:8983/, I get the following error: > > Error 404 - Not Found. No context on this server matched or handled this > request. Contexts known to this server are: /solr ---> > o.e.j.w.WebAppContext{/solr,file:/home/yaraju_gmail_com/solr-4.10.3/node1/solr-webapp/webapp/},/home/yaraju_gmail_com/solr-4.10.3/node1/webapps/solr.war > > What is the right way to do this? > > Thanks, > Avanish