Web Hosting Talk







View Full Version : Problem with ErrorDocument 401


Serevinus
03-03-2003, 08:54 AM
I am having a problem setting up a 401 error on a virtual site, without the 401 set everything works fine (prompts for password and lets you in if it is correct), however, as soon as you add a 401 it stops prompting for the password and just displays the 401 page on all protected dirs... As far as I can tell all the other errors work fine

Apache version is "Apache/1.3.20 Sun Cobalt (Unix)"
Running a RaQ4 with all the latest updates

Here is my config

in /etc/httpd/conf/httpd.conf
<Directory /home/sites/site12/errordocs>
AllowOverride none
Options MultiViews IncludesNoExec FollowSymLinks
AddType text/html .shtml
</Directory>
<Directory /home/sites/site12/web>
ErrorDocument 400 /errordocs/400.asp
ErrorDocument 401 /errordocs/401.asp
ErrorDocument 403 /errordocs/403.asp
ErrorDocument 404 /errordocs/404.asp
ErrorDocument 405 /errordocs/405.asp
ErrorDocument 502 /errordocs/502.asp
ErrorDocument 503 /errordocs/503.asp
</Directory>

in /home/sites/site12/web/protected/.htaccess
AuthUserFile /home/sites/site12/passwords/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
Require valid-user

in /home/sites/site12/passwords/.htpasswd
username:50q.zrL5e0Sak