LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2003, 09:19 AM   #1
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Rep: Reputation: 30
.htaccess files


i have a problem with a simple authentication system, the htaccess file is as so:

AuthUserFile /home/www/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic

require user joel


and i have my htpasswd:

joel:<password>

but i get the login box, and if i type in the values, it fails to login, just returs incorrect password
 
Old 09-30-2003, 11:18 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Try something like this:

Code:
AuthUserFile /home/www/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>
 
Old 09-30-2003, 11:19 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
A good tutorial if you need one: http://linux.lk.net/pages/htaccess.html
 
Old 09-30-2003, 11:28 AM   #4
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Original Poster
Rep: Reputation: 30
i have got a weird problem, i found out the original problem was that i spelt htpasswd filename wrong, but i corrected that, but now it just goes straight into the directory, nomatter what location i login from
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess files doesn't work in home directories rehtorisi Linux - Software 3 08-08-2005 08:02 AM
problem getting .htaccess files work wiggywag Slackware 6 02-17-2004 01:21 PM
Htaccess DoobyWho Linux - General 4 04-28-2003 01:01 PM
Cannot see .htaccess and .htpasswd files John_Saunders Linux - Newbie 2 07-21-2002 09:14 AM
User's public_html is not parseing .htaccess files greenhornet Linux - Networking 1 04-02-2002 03:00 AM


All times are GMT -5. The time now is 10:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration