Running Apache 1.3.9 on RedHat 6.1. I have a web site which anyone can view. I want to setup so that it prompts for a username and password to access. It looks like O'Reilly says to use AuthType, require, etc. I've put in the following into my httpd.conf:
<Directory /home/website/html/protected>
AuthType Basic
AuthName testname
AuthUserFile /home/httpd/ok_users/testu
AuthGroupFile /home/httpd/ok_users/testg
require user testuser
</Directory>
I'm not sure what the AuthName field should be. I've used htpasswd to create a password for testuser in /home/httpd/ok_users/testu.
When I try to browse to the folder, I get 403 forbidden error. What am I missing.
Thanks for any help.
<Directory /home/website/html/protected>
AuthType Basic
AuthName testname
AuthUserFile /home/httpd/ok_users/testu
AuthGroupFile /home/httpd/ok_users/testg
require user testuser
</Directory>
I'm not sure what the AuthName field should be. I've used htpasswd to create a password for testuser in /home/httpd/ok_users/testu.
When I try to browse to the folder, I get 403 forbidden error. What am I missing.
Thanks for any help.