Hi,

My setup is:

Wicket 7.8 running in Spring Boot (HTTP:8080) <--served by-- nginx (HTTP:80)
<--CDNed by-- CloudFlare (HTTPS:443)

This works almost well, however everytime Wicket issues a redirect it always
goes to http://version first, which is intercepted by CloudFlare then
immediately redirected back again to the HTTPS version. This is inefficient
(and may be why sometimes I experience certain issues with sessions, etc.)

What I'd like to do is so that Wicket always redirects *to* HTTPS (only for
Wicket pages, not manual URLs), or using predefined base URI that I set. I
set a base URI manually because e.g. I want to send email outside of Wicket,
the email needs to contain a link to the website, so the base URI needs to
be known. I'd like to use this base URI configuration with Wicket too.

However I don't want to use @RequireHttps because to the app server/Tomcat,
it always comes as a plain HTTP request.

Please help, thank you.

Hendy

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-force-page-redirects-to-HTTPS-tp4678479.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to