Announcement Announcement Module
No announcement yet.
Https and http pages Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    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
    - Don


    • #3
      Example Please

      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.



      • #4
        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,


        • #5
          did you ever get this figured out? I need to do the same thing but can't figure it out....