LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 12-20-2003, 11:39 AM   #1
Robin01
Member
 
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

</Directory>


- 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
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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.
 
  


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 .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 09:25 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