LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-18-2009, 12:16 PM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
Authenticating the Directory Access in Apache?


I have been following the steps mentioned at http://linuxhunt.blogspot.com/2009/1...dexing-in.html
Now I want to add authentication through .htaccess.
What steps I need to follow.
 
Old 10-18-2009, 02:54 PM   #2
madmadmod
Member
 
Registered: Sep 2009
Distribution: Fedora, Red Hat
Posts: 52

Rep: Reputation: 18
As far as i remember its like that:

- add "AllowOverride AuthConfig" to your server configuration
- create a password file with "htpasswd -c /usr/local/apache/passwd/passwords myuser"
- put something like this in your .htaccess file:

Code:
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /usr/local/apache/passwd/passwords
Require user myuser
as usual: no responsibility is taken for the correctness of this information

cheers
 
  


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
restrict access to a directory - apache sycamorex Linux - Server 1 09-27-2008 08:46 PM
Problem authenticating Apache - LDAP - Active Directory using a AD group mrcoffee11 Linux - Server 0 11-10-2007 07:53 AM
apache sub directory access ride153 Linux - Server 5 03-10-2007 08:47 AM
apache directory not authenticating drkstr Slackware 3 10-08-2006 05:03 AM
apache unable to access /home/*/public_html directory cavemanf16 Linux - Software 6 07-08-2004 06:43 AM


All times are GMT -5. The time now is 06:13 AM.

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