Problems with custom 401 page implementation

1 post / 0 new
#1 Wed, 11/25/2009 - 15:41
wonderland

Problems with custom 401 page implementation

Hi,

I wanted to make custom 401 error page. So I created .htaccess file:

AuthUserFile /home/bcg/htdocs/.htpasswd
AuthGroupFile /dev/null
ErrorDocument 401 /404.html
AuthName "Test"
AuthType Basic

<Files "test.html">
  Require valid-user
</Files>

But I don't seem to be able to work. I was looking into some similar threads in this forum, and understood that I probably need to edit apache configuration file.

So I wanted to ask, in order not to screw everything up, what exactly and where should I edit ?

p.s password protection is working.

Thank you!