[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Jetty 9 Redirect from Root to Sub-Directory.
|
Perfect Joakim! Thank you very much.
Could someone please show me how to edit the
jetty-rewrite.xml to rewrite from http://localhost:7070/ to http://localhost:7070/solr/
As mentioned in my original post I looked at http://www.eclipse.org/jetty/documentation/current/jetty-handlers.html#rewrite-handler.
Is this the correct way to add the rewrite rule? (I have absolutely no clue,
but someone suggested this online.)
<!-- Newly added to rewrite from root to slor -->
<Call name="addRule">
<Arg>
<New
class="org.eclipse.jetty.rewrite.handler.RewriteRegexRule">
<Set
name="regex">^$</Set>
<Set
name="replacement">/solr/</Set>
</New>
</Arg>
</Call>
Thank you again,
O. O.
________________________________
De: Joakim Erdfelt <joakim@xxxxxxxxxxx>
Para: JETTY user mailing list <jetty-users@xxxxxxxxxxx>
CC: O. Olson <olson_ot@xxxxxxxxx>
Enviado: Miércoles, 5 de junio, 2013 11:45 A.M.
Asunto: Re: [jetty-users] Jetty 9 Redirect from Root to Sub-Directory.
The best way to check the server classpath is to use the command line.
Example:
[jetty-distribution]$ java -jar start.jar --version
Use "java -jar start.jar --help" for more information.
Active Options: [Server, annotations, client, ext, jaas, jmx, jndi, jndi.demo, jsp, plus, resources, rewrite, websocket]
Version Information on 36 entries in the classpath.
Note: order presented here is how they would appear on the classpath.
changes to the OPTIONS=[option,option,...] command line option will be reflected here.
0: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-xml-9.0.3.v20130506.jar
1: 3.0.0.v201112011016 | ${jetty.home}/lib/servlet-api-3.0.jar
2: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-http-9.0.3.v20130506.jar
3: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-continuation-9.0.3.v20130506.jar
4: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-server-9.0.3.v20130506.jar
5: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-security-9.0.3.v20130506.jar
6: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-servlet-9.0.3.v20130506.jar
7: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-webapp-9.0.3.v20130506.jar
8: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-deploy-9.0.3.v20130506.jar
9: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-annotations-9.0.3.v20130506.jar
10: 1.1.0.v201108011116 | ${jetty.home}/lib/annotations/javax.annotation-1.1.0.v201108011116.jar
11: 3.1.0.v200803061910 | ${jetty.home}/lib/annotations/org.objectweb.asm-3.1.0.v200803061910.jar
12: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-client-9.0.3.v20130506.jar
13: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-jaas-9.0.3.v20130506.jar
14: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-jmx-9.0.3.v20130506.jar
15: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-jndi-9.0.3.v20130506.jar
16: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-plus-9.0.3.v20130506.jar
17: 1.1.0.v201105071233 | ${jetty.home}/lib/jndi/javax.activation-1.1.0.v201105071233.jar
18: 1.4.1.v201005082020 | ${jetty.home}/lib/jndi/javax.mail.glassfish-1.4.1.v201005082020.jar
19: 1.1.1 | ${jetty.home}/lib/jndi/javax.transaction-1.1.1.v201105210645.jar
20: 9.0.3.v20130506 | ${jetty.home}/lib/jndi.demo/test-mock-resources-9.0.3.v20130506.jar
21: 2.2.0.v201303151357 | ${jetty.home}/lib/jsp/com.sun.el-2.2.0.v201303151357.jar
22: 2.2.0.v201303151357 | ${jetty.home}/lib/jsp/javax.el-2.2.0.v201303151357.jar
23: 1.2.0.v201105211821 | ${jetty.home}/lib/jsp/javax.servlet.jsp.jstl-1.2.0.v201105211821.jar
24: 2.2.0.v201112011158 | ${jetty.home}/lib/jsp/javax.servlet.jsp-2.2.0.v201112011158.jar
25: 2.2.2.v201112011158 | ${jetty.home}/lib/jsp/org.apache.jasper.glassfish-2.2.2.v201112011158.jar
26: 1.2.0.v201112081803 | ${jetty.home}/lib/jsp/org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar
27: 3.8.2.v20130121-145325 | ${jetty.home}/lib/jsp/org.eclipse.jdt.core-3.8.2.v20130121.jar
28: (dir) | ${jetty.home}/resources
29: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-rewrite-9.0.3.v20130506.jar
30: 9.0.3.v20130506 | ${jetty.home}/lib/websocket/websocket-api-9.0.3.v20130506.jar
31: 9.0.3.v20130506 | ${jetty.home}/lib/websocket/websocket-common-9.0.3.v20130506.jar
32: 9.0.3.v20130506 | ${jetty.home}/lib/websocket/websocket-server-9.0.3.v20130506.jar
33: 9.0.3.v20130506 | ${jetty.home}/lib/websocket/websocket-servlet-9.0.3.v20130506.jar
34: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-util-9.0.3.v20130506.jar
35: 9.0.3.v20130506 | ${jetty.home}/lib/jetty-io-9.0.3.v20130506.jar
This is the best way to see what your start.ini + start.d + command line will result in on the server classpath.
--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
webtide.com
Developer advice, services and support
from the Jetty & CometD experts
eclipse.org/jetty - cometd.org