Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-20-2003, 11:39 AM   #1
Registered: Aug 2003
Posts: 104

Rep: Reputation: 15
.htaccess / .htpasswd inq

hello everybody

Trying to learn/ implement .htaccess / .htpasswd...

example folder .htaccess: /wwwfolder/admin_folder

to protect the admin_folder i have the following
.htaccess file content
AuthUserFile /root folder/dirfolder(locating of .htpasswd)
AuthName "Locked Area"
AuthType Basic
Require smith

<Directory "/public_html/"
AllowOverride options


- does .htaccess present a login screen or does it present a error message such as "internal server error" which what i'm getting right now.

Last edited by Robin01; 12-20-2003 at 11:44 AM.
Old 12-20-2003, 06:36 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
Whats up with the line that says:

Require smith

You should just put there: Require Validuser

And then did you create the user with the htpasswd command? Then a restart on apache when changing the configuration file? If done correctly, it should pop up the login screen from the browser, usually the boring gray default login screen, etc.


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 .htpasswd plisken Linux - General 5 05-21-2006 02:44 PM
htaccess/htpasswd not authenticating BrianK Linux - Software 3 12-10-2004 03:52 PM
.htaccess .htpasswd issue Robin01 Linux - Newbie 4 12-24-2003 04:36 PM
Help with .htpasswd and .htaccess MikeeX Linux - General 3 03-25-2003 11:41 AM
Cannot see .htaccess and .htpasswd files John_Saunders Linux - Newbie 2 07-21-2002 10:14 AM

All times are GMT -5. The time now is 06:51 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