Hi,

 

We have a wicket application running at the following address
http://myserver.domain.be:8082/myapplication.  When I do add the
@RequiredHttps annotation to my pages, wicket does a great job
redirecting my pages to https connection.  I get something like:

https://myserver.domain.be:8443/myapplication/somepage .

 

So far so good, but now I have to serve this application behind a
reverse proxy.  I have apache httpd2 set up with ProxyPass, and I added
a VirtualHost for my application, something like
http://myapplication.domain.be (this way port 8082 isn't visible and
/myapplication context path isn't visible either).

 

This is working perfectly for non https pages, but when I go to a https
pages, I get redirected to the server application address
(https://myserver.domain.be:8843/myapplication).  This is because the
SwitchProtocolRequestTarget is building the redirect url based on the
httpservletrequest.getServerName()...

 

Is it possible to extend/override this behavior ?

 

Regards

Joeri

 

 

 

 

Reply via email to