[ Date Index ][
Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
All you need is: AuthType Basic AuthName "Restricted Files" AuthUserFile /home/neil/users Require valid-user
Notes:
1. I don't think the .htpasswd filename is a good idea (make sure this is ABOVE the top level of the website, if the website is /home/neil/public_html/ the above is OK). Rename the file as above.
2. I don't know if the capitalisation of Require is essential, but the other part is the construct 'valid-user' rather than 'user guest'.
3. Make sure you CLOSE the BROWSER and restart apache (under Debian) httpd (under RH/Mdk) before re-testing the authorisation, everytime.
4. Make sure that the path to the users file is readable by the apache user. (As Alex advised).
5. Make sure that the .htaccess file is in the directory that it relates to, not the one above or one below.
Neil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE+JF/7ETbMU8Wu6mERAr60AJ9rWgnd8ELnSfE1lkDNhYf/vNStswCdFILJ I5C+ujBymfnEQYlnhwHEHAY= =59id -----END PGP SIGNATURE-----
-- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.