Hi Sean,
>
> On Wed, Aug 26, 2009 at 4:30 PM, Comerford,
> Sean<Sean.Comerford_at_espn3.com> wrote:
>
>> So this may not be a Glassfish question per se but here goes:
>>
>> We switched from a proprietary servlet 2.3 container to Glassfish v2.1
>> (servlet 2.5).
>>
>> We have VIPs (virutal IPs) that consist of numerous hosts.
>>
>> So http://foo.com is routed to either http://bar1 or http://bar2
>>
>> Since switching to Glassfish / servlet 2.5, sendRedirect(“/index”) now sends
>> the user to http://barX/index instead of http://foo.com/index (which is what
>> we want and how it worked before)
>>
>> I’m not sure how sendRedirect is determining the domain to use but is there
>> a Glassfish config way to override what it’s doing?
>>
Yes there is: Please use the "server-name" attribute of <http-listener>
for this
purpose.
In your particular case, set its value to "foo.com". You can optionally
also specify a port number for the redirect, separated by colon, as in:
"foo.com:1234".
Let us know if you have any further questions.
Thanks!
Jan
>> --
>> Sean Comerford, Software Engineer
>> ESPN.com Site Architecture Group
>> Office: 860.766.6454 Cell: 860.329.5842
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>