how does the demo site setup https redirect
Posted: Sun Jun 15, 2014 6:13 am
Hi guys,
Everybody is in world cup mode but me...
I had my nginx setup to balance the request to tomcat, and it works fine on http. Now I am trying to setup the https, and found this wierd issue. My tomcat listen on 8080, 8443 and 8444, same as default on jetty evironment. However I found when I access to https://testserver:8443, tomcat replies http://testserver:8080, seems something in between redirected the request automatically.
I seached through the tomcat configure file (server.xml) just couldn't understand why this is. Also looked into broadleaf commerce code, all I found is <sec:port-mapping http="8080" https="8443"/> which in my understanding, is saying if it's secure region, and the port is 8080, then redirect to 8443.
I experienced the opposite redirection, I guess. Another thing I found is, login form, doesn't explicitely schema to https, so I could login under http protocol. Is it intend to do so?
Cheers,
Dan
Everybody is in world cup mode but me...

I had my nginx setup to balance the request to tomcat, and it works fine on http. Now I am trying to setup the https, and found this wierd issue. My tomcat listen on 8080, 8443 and 8444, same as default on jetty evironment. However I found when I access to https://testserver:8443, tomcat replies http://testserver:8080, seems something in between redirected the request automatically.
I seached through the tomcat configure file (server.xml) just couldn't understand why this is. Also looked into broadleaf commerce code, all I found is <sec:port-mapping http="8080" https="8443"/> which in my understanding, is saying if it's secure region, and the port is 8080, then redirect to 8443.
I experienced the opposite redirection, I guess. Another thing I found is, login form, doesn't explicitely schema to https, so I could login under http protocol. Is it intend to do so?
Cheers,
Dan