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

RE: [cobalt-users] .htaccess doesnt do anything



>I am trying to password protect a directory. I made the .htaccess file in
>the directory and put the following in it:
>
># Access file
>order allow,deny
>allow from all
>require valid-user
>Authname DirectoryName
>Authtype Basic
>AuthUserFile /home/sites/sitename/users/username/.htpasswd
>
>this is the exact syntaxt found on the cobalt.com knowledgebase. but it
>never prompts for the username/password.
>what am i missing?
>
>Patrick

Did you create the .htpasswd file in the users directory. That's sounds like
what you're missing.

type /usr/sbin/htpasswd --help for help
but try /usr/sbin/htpasswd -c /home/sites/site/users/username/.htpasswd
Must be SU

hope that helps.
Johnc