logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: login twice, redirect + https
Author
LilK3ks



Joined: 28 Mar 2013
Posts: 2

PostPosted: Thu 04 Apr '13 11:20    Post subject: login twice, redirect + https Reply with quote

Hi everyone,
after troubleshooting this problem for some time now, I decided that I need some help Wink
Since a month, I am the admin of a online portal with a login secured area.
I want, that the login is secured, so I force people to use https with a redirect.
Unfortunately with this redirect users always have to login twice. Sad
Has anyone an idea how they can only login with https but only have to login one time?

I'm using Red Hat 4.4.5-6, Apache 2.2
Content of /etc/httpd/conf:
Code:
#https redirect
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^/(.*)/login https://%{HTTP_HOST}/login [NC]


Thanks a lot in advance,
Lily
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Thu 04 Apr '13 11:38    Post subject: Reply with quote

Did you try:

RewriteRule ^/(.*)/login https://%{HTTP_HOST}/login [NC,R,L]
Back to top
LilK3ks



Joined: 28 Mar 2013
Posts: 2

PostPosted: Fri 05 Apr '13 18:28    Post subject: Reply with quote

changed the config and restarted the server - but without results Sad
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 10 Apr '13 10:19    Post subject: Reply with quote

What ever scripting language you use, make sure that the login prompts only if https is present. Or do you do the login via apache?
Back to top


Reply to topic   Topic: login twice, redirect + https View previous topic :: View next topic
Post new topic   Forum Index -> Apache