Hi Simone,

What I meant to say was Solr is deployed to “/solr” and is then mapped to “/“, 
e.g. http://localhost:8983/ <http://localhost:8983/> gets mapped to 
http://localhost:8983/solr/# <http://localhost:8983/solr/#>.
My apology for the confusion, I was cutting-n-pasting from another message and 
reversed the sense by accident.
I can add static content, add other servlets (java, clojure), etc.
I want to put a different servlet at “/“ while preserving Solr functionality at 
“/solr”.
My unsuccessful attempts included:

- edit contexts/solr-jetty-context.xml (contextPath, add resourceBase, etc.)
- unmap solr rewrite rule to pass thru . . .
- edit other '/contexts/' . . .
- edit etc/webdefault.xml . . .
- bin/solr does not appear to affect "/"
- org.apache.solr.util.SolrCLI does not appear to affect "/"

Perhaps I’m not trying the right combination of things in the right order to 
solve the issue, but I’ve run out of simple ideas to try.
This is my first project using Jetty so I am not familiar with any 
idiosyncrosies . . .

-matt.

> On Nov 6, 2016, at 3:15 PM, Simone Bordet <[email protected]> wrote:
> 
> Hi,
> 
> On Sun, Nov 6, 2016 at 5:00 PM, matthew grisius
> <[email protected]> wrote:
>> I migrated my Solr 4.x app from old style war deployment via tomee plus to 
>> newer style Solr 6.x using Jetty.
>> Solr deploys using the "root context” (default) contextPath = “/“.
>> I want to change Solr to use a different contextPath, e.g. “/solr" and have 
>> exceeded/exhausted my new Jetty user knowledge/options.
>> I asked on "Solr User” and received no replies.
>> Perhaps I’m missing something simple?
>> 
>> Thanks, any ideas/suggestions would be really appreciated!
> 
> Downloading the Solr 6.2.1 distribution, I see there is a context file
> $solr/server/contexts/solr-jetty-context.xml, which references a
> property called "hostContext", which is also referenced in
> $solr/server/solr/solr.xml.
> 
> I don't know Solr, but looks that the default is to deploy to /solr,
> not to the root context.
> 
> Have you tried playing with those files and the "hostContext" property ?
> 
> -- 
> Simone Bordet
> ----
> http://cometd.org
> http://webtide.com
> Developer advice, training, services and support
> from the Jetty & CometD experts.
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users

_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to