[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-users] Jetty Context question
|
Hello,
I have this simple context and I would like to change it so that it points to a different server on a different port. Is this possible to do?
Thanks,
tom
Current Context File: xFiles.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure class="org.eclipse.jetty.server.handler.ContextHandler">
<Set name="contextPath">/xFiles</Set>
<Set name="resourceBase">/opt/Content/xFiles/</Set>
<Set name="handler">
<New class="org.eclipse.jetty.server.handler.ResourceHandler">
<Set name="directoriesListed">true</Set>
<Set name="aliases">true</Set>
<Set name="welcomeFiles">
<Array type="String">
<Item>index.html</Item>
<Item>index.htm</Item>
</Array>
</Set>
</New>
</Set>
</Configure>
Example (Not Working :-) ) Context File:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure class="org.eclipse.jetty.server.handler.ContextHandler">
<Set name="contextPath">/xFiles</Set>
<Set name="resourceBase">http://127.0.0.1:80/content/xfiles</Set>
<Set name="handler">
<New class="org.eclipse.jetty.server.handler.ResourceHandler">
<Set name="aliases">true</Set>
<Set name="welcomeFiles">
<Array type="String">
<Item>index.html</Item>
<Item>index.htm</Item>
</Array>
</Set>
</New>
</Set>
</Configure>