htaccess authentification on SSL

Αρχική Σελίδα
Συνημμένα:
Μήνυμα σαν ηλεκτρονικό μήνυμα
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Συντάκτης: keith smith
Ημερομηνία:  
Προς: Main PLUG discussion list
Αντικείμενο: htaccess authentification on SSL



Hi,

I've been trying to get an htaccess authentication to work on the secured server.  It works intermittent at best.  The htaccess and htpassword files are both in the directory that I want to password protect.


Here is my code:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} folder
RewriteRule ^(.*)$ https://www.domain.tld/folder/$1 [R,L]

AuthUserFile /path/to/password/file/.htpasswd_file
AuthType Basic
AuthName "Log in Please"
require user username


It allows me to authenticate, however sometimes it is HTTP and other times it is HTTPS.

I need it to be HTTPS all the time.

Thank you for all your guidance!

Keith---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss