Problems with custom 401 page implementation


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

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!