Hi,
I have a JBoss 6 server behind a "content switch" that acts as a front end and a termination point for HTTPS. So the flow is:
This seems to work fine until the application requests a redirect to a relative address. In that case JBoss converts the relative URL to an absolute URL of the form
and this breaks things because I need the URL to be
HTTPS://FrontEnd/...
Actually I was surprised that JBoss even put "FrontEnd" in there. How did it know not to use "AppServer"? So I investigated (using JBoss' RequestDumperValve) and found that the content switch (FrontEnd) adds some headers, including the following ones that seem especially relevant:
So with that information I can see why JBoss is doing what it does. My question (finally!) is, can I somehow persuade JBoss to use HTTPS in the redirect under these conditions?
(I'm hoping for some simple configuration setting rather than writing a valve or modifying the content switch).
Many thanks,
NIck