mirror of https://github.com/apache/lucene.git
SOLR-7240: '/' redirects to '/solr/' for convinience
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1669431 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dada4c8943
commit
b17ed54025
|
@ -190,6 +190,7 @@ org.eclipse.jetty.version = 9.2.9.v20150224
|
|||
/org.eclipse.jetty/jetty-http = ${org.eclipse.jetty.version}
|
||||
/org.eclipse.jetty/jetty-io = ${org.eclipse.jetty.version}
|
||||
/org.eclipse.jetty/jetty-jmx = ${org.eclipse.jetty.version}
|
||||
/org.eclipse.jetty/jetty-rewrite = ${org.eclipse.jetty.version}
|
||||
/org.eclipse.jetty/jetty-security = ${org.eclipse.jetty.version}
|
||||
/org.eclipse.jetty/jetty-server = ${org.eclipse.jetty.version}
|
||||
/org.eclipse.jetty/jetty-servlet = ${org.eclipse.jetty.version}
|
||||
|
|
|
@ -224,7 +224,7 @@ New Features
|
|||
* SOLR-7226: Make /query/* jmx/* , requestDispatcher/*, <listener> <initParams>
|
||||
properties in solrconfig.xml editable (Noble Paul)
|
||||
|
||||
|
||||
* SOLR-7240: '/' redirects to '/solr/ for convinience (Martijn Koster, hossman)
|
||||
|
||||
|
||||
Bug Fixes
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
c6ad2ded06bdda6444286fc18348016d82750cf0
|
|
@ -13,12 +13,33 @@
|
|||
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
||||
|
||||
<!-- =========================================================== -->
|
||||
<!-- Set handler Collection Structure -->
|
||||
<!-- RewriteHandle to redirect root to Solr -->
|
||||
<!-- =========================================================== -->
|
||||
<New id="RewriteHandler" class="org.eclipse.jetty.rewrite.handler.RewriteHandler">
|
||||
<Set name="rewriteRequestURI">true</Set>
|
||||
<Set name="rewritePathInfo">false</Set>
|
||||
<Set name="originalPathAttribute">requestedPath</Set>
|
||||
|
||||
<Call name="addRule">
|
||||
<Arg>
|
||||
<New class="org.eclipse.jetty.rewrite.handler.RedirectRegexRule">
|
||||
<Set name="regex">^/$</Set>
|
||||
<Set name="replacement">/solr/</Set>
|
||||
</New>
|
||||
</Arg>
|
||||
</Call>
|
||||
</New>
|
||||
|
||||
<!-- =========================================================== -->
|
||||
<!-- Set handler Collection Structure -->
|
||||
<!-- =========================================================== -->
|
||||
<Set name="handler">
|
||||
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
|
||||
<Set name="handlers">
|
||||
<Array type="org.eclipse.jetty.server.Handler">
|
||||
<Item>
|
||||
<Ref id="RewriteHandler"/>
|
||||
</Item>
|
||||
<Item>
|
||||
<New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
|
||||
</Item>
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
<dependency org="org.eclipse.jetty" name="jetty-http" rev="${/org.eclipse.jetty/jetty-http}" conf="jetty"/>
|
||||
<dependency org="org.eclipse.jetty" name="jetty-io" rev="${/org.eclipse.jetty/jetty-io}" conf="jetty"/>
|
||||
<dependency org="org.eclipse.jetty" name="jetty-jmx" rev="${/org.eclipse.jetty/jetty-jmx}" conf="jetty"/>
|
||||
<dependency org="org.eclipse.jetty" name="jetty-rewrite" rev="${/org.eclipse.jetty/jetty-rewrite}" conf="jetty"/>
|
||||
<dependency org="org.eclipse.jetty" name="jetty-security" rev="${/org.eclipse.jetty/jetty-security}" conf="jetty"/>
|
||||
<dependency org="org.eclipse.jetty" name="jetty-server" rev="${/org.eclipse.jetty/jetty-server}" conf="jetty"/>
|
||||
<dependency org="org.eclipse.jetty" name="jetty-servlet" rev="${/org.eclipse.jetty/jetty-servlet}" conf="jetty"/>
|
||||
|
|
Loading…
Reference in New Issue