[
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.
|
Thank you very much Alex.
----- Mensaje original -----
De: Alexei Mikhailov <alexei.mikhailov@xxxxxxxxxxxx>
Para: jetty-users@xxxxxxxxxxx
CC:
Enviado: Viernes, 7 de junio, 2013 2:46 A.M.
Asunto: Re: [jetty-users] Jetty 9 Redirect from Root to Sub-Directory.
On 6/6/13 19:38, O. Olson wrote:
> Just to make sure, I restored jetty-rewrite.xml from the
> original download and I still get this exception. However, if I disable i.e.
> comment out the two lines mentioned above in the start.ini, then I correctly
> get the expected 404. Why does this happen?
It's most likely because you don't have any rules left for your
RewriteHandler (i.o.w. you commented out the only "Call name='addRule'"
present in jetty-rewrite.xml, but left the creation of RewriteHandler),
so it gets a null pointer when it tries to apply them. I would guess
that that's intended behavior -- either disable rewrite handler
completely, or have some rules defined for it.
Yes, this is true. If you have even a single rule, then
there is no exception. If that’s the intended behavior then it is OK.
Thank you again for your help.
O. O.