These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Problems with custom 401 page implementation on the new forum.
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!