Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '403: Forbidden Access Issue' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
403: Forbidden Access Issue
Authored by: tranzparency on Jan 27, '03 06:37:49PM

I've tried everything I can think of and I still get the 403 Forbidden message. It will not let me enter a username or password. Here's what I did.

Created appropiate folders:
---------------------------
%cd /Library/WebServer/Documents
%mkdir DAVdocs
%chown www:www DAVdocs
%cd /Library/WebServer/
%mkdir DAVLock
%chown www:www DAVLock


Edited my httpd.conf file:
----------------------------------------
LoadModule dav_module libexec/httpd/libdav.so ** UNCOMMENTED THIS **
AddModule mod_dav.c ** UNCOMMENTED THIS **

<Directory "/Library/WebServer/Documents/DAVdocs/">
DAV On

AllowOverride AuthConfig
AuthName "DAV Restricted"
AuthType Basic
AuthUserFile /Library/WebServer/users

Require valid-user
</Directory>

Created user for directory:
-------------------------
%cd /Library/WebServer
%htpasswd -c users davuser


I created a .htaccess file in the /Library/WebServer/Documents/DAVdocs folder:
-----------------------------------------------------------------------------
AuthName "DAV Restricted"
AuthType Basic
AuthUserFile /Library/WebServer/users

require valid-user


Then made sure all file directory permission were correct:
----------------------------------------------------------
%chown www:www /Library/WebServer/Documents/DAVdocs/.htaccess


I restarted Apache then tried to access the folder from a browser. I get a "403 Forbidden Access" response. It doesn't even give me the chance to enter a username or password. I ran litmus againt the server and it failed authentication. I'm at wits end here.. Any ideas?



[ Reply to This | # ]
403: Forbidden Access Issue
Authored by: wrongpart on Jun 05, '03 08:38:33AM

You have to change "require valid-user" to "require davuser" in the .htaccess and httpd.conf files



[ Reply to This | # ]