Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C03A1780C for ; Fri, 6 Feb 2015 15:30:30 +0000 (UTC) Received: (qmail 35166 invoked by uid 500); 6 Feb 2015 15:30:26 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 35100 invoked by uid 500); 6 Feb 2015 15:30:26 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 35076 invoked by uid 99); 6 Feb 2015 15:30:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2015 15:30:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.220.101.25] (HELO wunderwood.org) (192.220.101.25) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2015 15:30:20 +0000 Received: (qmail 77873 invoked by uid 25881); 6 Feb 2015 15:29:59 -0000 Received: from unknown (HELO [192.168.1.90]) (wunder@[76.218.104.79]) (envelope-sender ) by 192.220.101.25 (qmail-ldap-1.03) with AES128-SHA encrypted SMTP for ; 6 Feb 2015 15:29:59 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Changing contextRoot from /solr to / From: Walter Underwood In-Reply-To: <54D4CAD6.9050104@gmail.com> Date: Fri, 6 Feb 2015 07:29:58 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <855BA47C-05A5-411B-846D-42CE9EE23D8D@wunderwood.org> References: <54D4C6F8.4040004@gmail.com> <54D4CAD6.9050104@gmail.com> To: solr-user@lucene.apache.org X-Mailer: Apple Mail (2.1878.6) X-Virus-Checked: Checked by ClamAV on apache.org Put Apache in front of it and rewrite all the URLs. wunder Walter Underwood wunder@wunderwood.org http://observer.wunderwood.org/ On Feb 6, 2015, at 6:08 AM, Andrea Gazzarini = wrote: > Sorry I didn't read your email carefully: the rename workaround = doesn't work if you want to publish a webapp on "/" >=20 > On 02/06/2015 02:51 PM, Andrea Gazzarini wrote: >> That config parameter is within the section while you are = talking about a standalone server. >> The context root of a webapp is not something you can configure = within the webapp itself, each server has is own way to do that. >>=20 >> The simplest (but definitely no "elegant") way is to rename the = solr.war under your deployment directory; this works with many servlet = engines / application server - Jetty, Tomcat, JBoss, Weblogic, Websphere = (most probably also with the others) >>=20 >> On 02/06/2015 02:15 PM, Avanish Raju 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) >>>=20 >>> I've tried changing my node1/solr/solr.xml's hostContext variable to >>> $(hostContext:) instead of $(hostContext:solr) but this didn't = change >>> anything athttp://localhost:8983/solr/. And if I go to >>> http://localhost:8983/, I get the following error: >>>=20 >>> 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 >>>=20 >>> What is the right way to do this? >>>=20 >>> Thanks, >>> Avanish >>>=20 >>=20 >=20