Ok, I now see the problem. In my case I'm using NamedVirtualHost to send to
different Tomcat instances (and it works fine). It seems that the Jk module
of Tomcat isn't parsing the Host header correctly when you have multiple
hosts sending to the same Tomcat instance. I'd suggest submitting a bug
Here's a little more info...
The problem is that the hyphenated hostname being given to the browser
(www.first-last.com) is being changed by the servlet and the hyphen is being removed
(www.firstlast.com). (Of course that's not a real domain name but it illustrates
what's happening more clearly
I just tested this, and it works for me. My first guess would be that the
tag is setup wrong.
This is a bit strange, but it should be easy enough to debug. Try doing:
$ telnet my-host.mycompany.com 80
...
GET /myapp/my-page-that-does-a-redirect HTTP/1.0
Host: my-host.mycompany.com
Of course, s
I've recently noticed a problem that occurs when I access my site using a domain name
with a hyphen in it. It seems that when I navigate using dispatcher.forward everything
works fine. But when I use response.sendRedirect the hyphen is lost. Since we also own
the same domain name without the hy