[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: .htaccess help!



Alexander Wallace(awallace@rwsoft-online.com) is reported to have said:
> Hello there, I hope you can excuse my ignorance in these matters...
> 
> In order to protect certain html dirs with a password, I was told by a
> good member of this list to make sure that I had the mod_auth enabled in
> httpd.conf. Which I do.
> 
> Thend I was told that I need an .htaccess file which I created with
> htpasswd in /home/myusername/.htaccess...
> 
> But when i create the file and look for
> http://www.myserver.com/~myusername i get:
> 
> Internal Server Error
> The server encountered an internal error or misconfiguration and was
> unable to complete your request... 

The .htaccess file is put into the directory you wish to protect:
ie /home/public_html/linux/.htaccess

the first line of my .htaccess files tells apache where to look for
the .htpasswd file.  Such as
AuthUserFile    /home/my_home_dir/.htpasswd
-- 
Never say "OOPS!" always say "Ah, Interesting!"
_______________________________________________________



Reply to: