Re: [jetty-user] Jetty 7.3 and setup alias dir

Michael Gorovoy <[email protected]>
Newsgroups gmane.comp.java.jetty.support
Message-ID <[email protected]>
Tom,

If the directory you want to serve could be under different context path,
you can configure a context by adding a context XML file similar to the way
/javadoc context is configured in the Jetty distribution (see
contexts/javadoc.xml<http://dev.eclipse.org/viewcvs/viewvc.cgi/jetty/trunk/jetty-distribution/src/main/resources/contexts/javadoc.xml?view=markup&revision=2315&root=RT_JETTY>in
Jetty distribution). If you have to have it under the same context
path
as the web application, you would have to use Jetty's
DefaultServlet<http://dev.eclipse.org/viewcvs/viewvc.cgi/jetty/trunk/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/DefaultServlet.java?view=markup&root=RT_JETTY>and
configure its resourceBase to point to a directory that you would like
to serve.

-Michael

On Sat, Mar 5, 2011 at 10:15 AM, TomJones <[email protected]> wrote:

> Hello,
> I have a web app running and I want to serve up another directory under the
> same webapp from a different location on the host. Essentially I want is
> something similar to the "Alias" function in Apache.
>
> How would I do this?
>
> Thanks,
> tom
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.