Ryan,
Thanks for adding the Host header into watchdog - however there is still
a problem.
By default you are only setting
Host: localhost
when you should be setting
Host: localhost:8080
The RFC says:
Host = "Host" ":" host [ ":" port ] ; Section 3.2.2
A "host" without any trailing port information implies the default
port for the service requested (e.g., "80" for an HTTP URL).
So even though Jetty receives the requests on port 8080, getServerPort
returns 80, as this is what the Host header indicates the client used
for their request and that some proxy or gateway did the redirection to
port 8080.
Note that there is even a difference between
Host: localhost:80
and
Host: localhost
As some browsers treat cookies set for localhost:80 as being for a different host
than just localhost. So Jetty tries to be rigorous when rewriting URLs to always use
the exact form that was specified in the host header.
cheers
cheers
--
Greg Wilkins<[EMAIL PROTECTED]> GB Phone: +44-(0)7092063462
Mort Bay Consulting Australia and UK. Mbl Phone: +61-(0)4 17786631
http://www.mortbay.com AU Phone: +61-(0)2 98107029
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>