Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] jetty-users Digest, Vol 57, Issue 53

Thanks for the pointer Jan. What I didn't mention is that I don't need to deploy any web apps. I am only deploying static content. I have the need to test that my code works with both permanent and temporary redirects. To support that I'm attempting to configure Jetty so that a request to /permanently-moved-feeds is redirected (HTTP status code 301) to the root context. I played around with various configurations mentioned by the documentation you linked to but I still can't get the redirect to work. I think I must be failing to understand some simple concept here. In order to make the redirect work, do I have to configure both / and /permanently-moved-feeds as root contexts for different web apps?


On Mon, Feb 24, 2014 at 8:43 PM, <jetty-users-request@xxxxxxxxxxx> wrote:

Message: 2
Date: Tue, 25 Feb 2014 11:25:15 +1100
From: Jan Bartel <janb@xxxxxxxxxxx>
To: JETTY user mailing list <jetty-users@xxxxxxxxxxx>
Subject: Re: [jetty-users] Using MovedContextHandler with the
        maven-jetty-plugin
Message-ID:
        <CALg=Vpj53i8FoWaQju_nojXmaP0HV-yuprLMDZ_H7QuEJskxhQ@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

Nick,

Perhaps having a read of the doco as regards deploying other contexts
alongside the webapp that is the subject of the jetty-maven-plugin
will help. See http://www.eclipse.org/jetty/documentation/9.0.6.v20130930/jetty-maven-plugin.html,
section "Running More than One Webapp".


Jan




--
Nick Watts
blog: thewonggei.wordpress.com
twitter: @thewonggei

Back to the top