Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've followed the Solr tutorial, but the URL they make you use is:


What is the most simple way to change this URL to:

share|improve this question
up vote 3 down vote accepted

I think I figured it out myself. What I did was, inside the example directory, rename




Also, I changed a line in solr/conf/scripts.conf to

share|improve this answer

If you are running Solr with Jetty, you can change it in webdefault.xml. Detailed instructions here

share|improve this answer

Seems a little different in 2014 with Solr 4.10:

From the "example" directory or your equivalent:

  1. edit contexts/solr-jetty-context.xml <Set name="contextPath"><SystemProperty name="hostContext" default="/foobar"/></Set>
  2. edit solr/collectionName/conf/scripts.conf : change webapp_name=foobar
  3. java -jar start.jar

I'm not sure where the webapp_name parameter is used but it seems reasonable to keep this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.