Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

force https in WebFlow

I have a grails application deployed on Tomcat7 and exposed by Apache2. The grails application respond on 8080 of the server the standard way but on Apache2 it is served to the user by https://

All works right except for a WebFlow controller. When the webflow redirect the user it change the https:// to http:// How I can force WebFlow to use https:// ?

like image 745
Fabiano Taioli Avatar asked Jun 19 '26 07:06

Fabiano Taioli


1 Answers

Have you configured the Tomcat to be aware of the fact that it is behind an https reverse proxy? You should set scheme="https" and secure="true" on the Connector element in server.xml.

Also make sure your grails.serverURL in Config.groovy is the full https URL from the clients' point of view.

like image 142
Ian Roberts Avatar answered Jun 23 '26 19:06

Ian Roberts



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!