|
following your articles with great interest and ideal starting ground for an apache/unix newbie. (god I hate that word, and at my age). Anyway, having probs with p/w authentication.
I created an access file:
library/webserver/documents/.htaccess
contents of the file are:
AuthName “Login”
AuthType Basic
AuthUserFile /Library/WebServer/.htpasswd
require valid-user
then created the p/w file:
htpasswd –c /library/webserver/.htpasswd username
contents of this file are:
username: o/29Pjetcetc
this didn’t contain: less /Library/WebServer/.htpasswd as in your example so I manually added but the end result is the same with or without this line of text.
I then get the following from browser:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Obviously it is seeing the custom error doc but I don’t get option to enter a login/p/w
Access_log:
[username:/library/webserver]tail /var/log/httpd/access_log
127.0.0.1 - - [08/Feb/2002:06:16:45 +0000] "GET /index.php HTTP/1.1" 403 -
127.0.0.1 - - [08/Feb/2002:06:16:46 +0000] "GET /index.php HTTP/1.1" 403 -
127.0.0.1 - - [08/Feb/2002:06:22:38 +0000] "GET / HTTP/1.1" 403 -
127.0.0.1 - - [08/Feb/2002:06:23:25 +0000] "GET / HTTP/1.1" 403 -
127.0.0.1 - - [08/Feb/2002:06:23:26 +0000] "GET / HTTP/1.1" 403 -
127.0.0.1 - - [08/Feb/2002:06:23:34 +0000] "GET /index.php HTTP/1.1" 403 -
127.0.0.1 - - [08/Feb/2002:07:36:44 +0000] "GET /index.php HTTP/1.1" 403 -
127.0.0.1 - - [08/Feb/2002:08:24:18 +0000] "GET / HTTP/1.1" 403 -
127.0.0.1 - - [08/Feb/2002:08:27:57 +0000] "GET / HTTP/1.1" 403 -
127.0.0.1 - - [08/Feb/2002:09:07:48 +0000] "GET / HTTP/1.1" 403 -
Error_log
[username:/library/webserver]tail /var/log/httpd/error_log
[Fri Feb 8 08:24:18 2002] [error] [client 127.0.0.1] client denied by server configuration: /Library/WebServer/Documents
[Fri Feb 8 08:24:18 2002] [error] [client 127.0.0.1] client denied by server configuration: /Library/WebServer/Documents/oops.html
[Fri Feb 8 08:27:36 2002] [notice] caught SIGTERM, shutting down
[Fri Feb 8 08:27:38 2002] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Fri Feb 8 08:27:38 2002] [notice] Apache/1.3.22 (Darwin) PHP/4.0.6 configured -- resuming normal operations
[Fri Feb 8 08:27:38 2002] [notice] Accept mutex: flock (Default: flock)
[Fri Feb 8 08:27:57 2002] [error] [client 127.0.0.1] client denied by server configuration: /Library/WebServer/Documents
[Fri Feb 8 08:27:57 2002] [error] [client 127.0.0.1] client denied by server configuration: /Library/WebServer/Documents/oops.html
[Fri Feb 8 09:07:48 2002] [error] [client 127.0.0.1] client denied by server configuration: /Library/WebServer/Documents
[Fri Feb 8 09:07:48 2002] [error] [client 127.0.0.1] client denied by server configuration: /Library/WebServer/Documents/oops.html
|
First, some questions:
1) What do you have in your /Library/WebServer/Documents folder? Do you have an index.html file? Or index.shtml? Or index anything?
2) Did you turn off "Indexes", stopping Apache's autogenerating of indexes?