Feb 16th, 2011, 04:24 AM
Https and http pages
I am developing an application using Spring MVC. Application is deployed in tomcat and proxied by Apache. I have configured SSL through Apache server. All the pages are working fine with HTTPS request. But I want to keep only some of the pages should be https and other will be http.
So I need to redirect from http to https and vice versa. In both case my data should not loss. Please help me, how to do this ??
Thanks in advance.
Feb 16th, 2011, 10:33 AM
Your best bet for this would be to use Spring Security. They make it pretty simple to do channel security switching (from HTTP to HTTPS and vice versa) based on URL patterns.
If you're not using it yet, it's worth mentioning it slots into a Spring application pretty seamlessly.
Hope this helps
Feb 17th, 2011, 01:02 AM
Thanks for your reply,
Now I want to secure only login page then how can I switch to https://.../login and back to http://...
Can you please show me sample or example. really it will help me a lot.
Feb 18th, 2011, 03:47 AM
Is it possible from APACHE
Not getting reply on this post...
Is it possible when user clicks on login url, it must go https request and after login back to http. I have configured SLL on APACHE server. So must be some setting to do such things.
Thanks in advance,
Apr 9th, 2011, 01:26 PM
did you ever get this figured out? I need to do the same thing but can't figure it out....
Tags for this Thread