LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 01-20-2005, 05:05 PM   #1
belorion
Member
 
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.
 
  


Reply


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 08:47 AM
Authentication service cannot retrieve authentication info Moffett67 Linux - Software 3 12-13-2007 04:16 AM
IBM Http server with ldap authentication Rinish Linux - Networking 1 06-16-2005 09:11 AM
Authentication In A Http Request With Kerberos Ephraim Programming 0 08-03-2004 05:13 AM
HTTP AUTHENTICATION with PHP lemotion Programming 1 04-22-2004 03:08 PM


All times are GMT -5. The time now is 01:47 PM.

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