Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: login twice, redirect + https |
|
Author |
|
LilK3ks
Joined: 28 Mar 2013 Posts: 2
|
Posted: Thu 04 Apr '13 11:20 Post subject: login twice, redirect + https |
|
|
Hi everyone,
after troubleshooting this problem for some time now, I decided that I need some help
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.
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
|
Posted: Thu 04 Apr '13 11:38 Post subject: |
|
|
Did you try:
RewriteRule ^/(.*)/login https://%{HTTP_HOST}/login [NC,R,L] |
|
Back to top |
|
LilK3ks
Joined: 28 Mar 2013 Posts: 2
|
Posted: Fri 05 Apr '13 18:28 Post subject: |
|
|
changed the config and restarted the server - but without results |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 10 Apr '13 10:19 Post subject: |
|
|
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 |
|
|
|
|
|
|