[ale] password protecting a website

Mark Walters mwalters at coe.uga.edu
Thu Mar 21 22:47:12 EST 2002



I could be wrong but you might try
AuthUserFile: /home/usr/.htpasswd

Let me know if this works.:-)



On Thu, 21 Mar 2002, Jon Faranda wrote:

> Hi All,
> 
> I am running Redhat 7.2 and currently have a website on my machine in
> (/var/www/html/index.html...). I want to password protect a webpage
> within my website. Here's what I did:
> 
> 1. created /var/www/html/protected/ (where "protected" is the directory
> where my secret files will be)
> 
> 2. created a test webpage in the protected directory and did: chmod a+r
> filename.html
> 
> 3. created .htaccess file in the */protected directory and added the
> following :
>     AuthName "Enter Password"
>     AuthType Basic
>     AuthUserFile /home/user/password
>     require valid-user
> 
> 4. I then did: chmod 640 .htaccess
> 
> 5. Under /home/user I ran: "htpasswd -c password username" and "Chmod
> 640
> password"
> 
> No Luck! What am I missing? Is it a permission problem? Thanks.
> 
> --
> Regards,
> 
> Jon Faranda
> http://redhatjon.slyip.net
> 
> 
> 

-- 
---------------------------
Mark Walters
Ramsey Helpdesk
mwalters at coe.uga.edu	
(706)542-4417


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list