I'm not sure it's a related to wicket. I think it's related to the respones.sendRedirect() implementation and how the string put in the location header is build. I don't know if it's standard or if it's a Jetty implementation. I have to found out this implementation to understand where the host in location header comes from. Or perhaps I could "override" the sendRedirect method() as described here : http://knowledgefolders.com/akc/servlet/DisplayServlet?url=DisplayNoteMPURL&reportId=1711&ownerUserId=satya


Stéphane Jeanjean a écrit :

I don't know, that's a part of my question. Nothing about RPhost is configured in my BEhost.

Igor Vaynberg a écrit :
how does wicket know about RPhost when it issues the 302?

-igor

On Mon, Sep 28, 2009 at 2:10 AM, Stéphane Jeanjean
<stephane.jeanj...@softeam.com> wrote:
Hello,

I'm using Wicket in a backend which is behind a reverse-proxy.
I understand that Wicket does some redirections even if it's not's explicity requested by my code. (perhaps, here, it depends of some strategies, but I
don't know them)

When a redirection is sent by the back-end the hostname used is the reverse proxy host instead of the back-end host. I would like to use the back-end host in this response to be able to translate the back-end host to front-end
host in the reverse-proxy.
What I can see in the reponse :
BackEnd -> 302:http://RPhost/myApp/mypage --> ReverseProxy ->
302:http://RPhost/myApp/mypage -> Browser
What I would like :
BackEnd -> 302:http://BEhost/myApp/mypage --> ReverseProxy ->
302:https://RPhost/myApp/mypage -> Browser

I'm using Jetty for my server and mod_proxy in ligthtpd for the reverse
proxy.

Any idea ?

Thanks,

Stéphane



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to