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

Re: [cobalt-users] Path for htaccess file



On Tuesday, March 12, 2002 7:28 pm, chiefmonkey <george@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>	
>
>    How do I find  the siteroot, I am using  an htaccess file to protect a 
>folder, but I can't get it to work the only thing which can be wrong is the 
>path to the .htpassword file
>
>   the path to the folder is
>
>      /web/myfolder/master/.htpasswd
>
>   but it won't work the username/password box will appear but when I enter 
>a password it doesn't work
>
>
>   George

Hi,
it could be one of two things, the path may be incorrect or you do not have AuthPAM_enabled off

here is a .htaccess file that I use.

AuthUserFile /home/groups/home/web/extranet/Clients/myclient/.htpasswd
AuthName "Client"
AuthType Basic 
AuthPAM_enabled off 
require valid-user

The path is from / to the location of the .htpasswd file.

When you are in the same directory at the .htpasswd file do a "pwd" (without the quotes) from the prompt to get the path.

HTH

Simon