Firstly apologies if my message turns up twice to the list. I tried posting the message below from a hotmail account and it looks like hotmail stripped the original XML formatting. Trying reposting with "alternate" XML markup.
I was wondering if someone could help me configure a MovedContextHandler from jetty-web.xml.I am using this to apply a permanent redirect from foo.com to www.foo.com
I have already successfully configured a MovedContextHandler by:1) Ensuring I had a ContextDeployer configured in my jetty.xml2) Authoring a context xml called test.xml that configured my MovedContextHandler3) Dropping test.xml in [jetty.home]/contexts/
Now I would like to move that configuration into jetty-web.xml. This is being done to aide with automatic build/deploy
customization. So I have tried putting the following in jetty-web.xml (excuse the formatting of the xml)
Things that I know:- that my jetty-web.xml is being picked up.- that traversing to the server object from the jetty-web.xml works (I configure an SSL connector inside jetty-web.xml)
However with the above configuration the MovedContext just doesn't work.
Thanks for any input.