Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-20-2005, 04:05 PM   #1
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 124

Rep: Reputation: 16
mod_rewrite *and* http authentication

I have a website which I want to restrict access to certain directories. Right now, I am using the plain-text http authentication with .htaccess.

I have an SSL certificate. And I know that if the browser is in SSL mode and *then* I navigate to the password protected portion of the site, that the username/passwd will be sent in encrypted form.

However, if someone deep links to the protected content, they will be prompted for username/passwd, but it will not be in SSL mode.

I tried to combine my mod_rewrite with my http auth in the same .htaccess file, but I get a server error. If I only use mod_rewrite to redirect to https://, that works, and if I only use the http auth to ask for username/password, that works, but if I put them both in the same htaccess file, I get a server error.

Why is this? Is there a way to ensure that everything is being done in SSL? Thanks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache: http://localhost (work) http://ipaddress (not working) sarmad Linux - Newbie 7 02-05-2013 07:47 AM
Authentication service cannot retrieve authentication info Moffett67 Linux - Software 3 12-13-2007 03:16 AM
IBM Http server with ldap authentication Rinish Linux - Networking 1 06-16-2005 08:11 AM
Authentication In A Http Request With Kerberos Ephraim Programming 0 08-03-2004 04:13 AM
HTTP AUTHENTICATION with PHP lemotion Programming 1 04-22-2004 02:08 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration