Help - Search - Members - Calendar
Full Version: problems with custom 401 errorpage
The Planet Forums > Control Panels > cPanel/WHM
dreamwiz
hello ev1,

One of my clients set up a custom 401 error page but there appears to be a problem... when 401 error occurs, it never loads the custom 401, instead it comes up with the default:

QUOTE
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

Additionally, a 401 Authorization Required error was encountered while trying to use an ErrorDocument to handle the request.


I read somewhere that if you have password protected directory you need to place custom 401 errorpage file outside that directory. I just tried that too, no help. Any ideas how to get this working?

in this thread in Cpanel forums someone had same problem, but no help there neither, tried everything in that thread: http://forums.cpanel.net/showthread.php?t=...ght=error+pages
lindem
I had this problem with all error pages and I think it's the same with you.

The one who helped me told me this:

The problem is that apache has no idea where to find these files. This is how to specify error documents for a particular vhost.

1. Open the httpd.conf file /etc/httpd/conf/httpd.conf in the pico (using pico -w httpd.conf) or
vi editor.
2. Look for the virtual host you wish to add the custom 404 document to:
3. Add in the custom 404 directive just before the < /VirtualHost> line. It should look like this:ErrorDocument 404 /errors/404.htm
4. Save the httpd.conf file
5. Log in to the control panel.
6. Stop, then start the apache webserver.
7. Check your 404 page. You should be able to bring up your page by typing in a nonexistent page. That should do it.


I hope it can help you too
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.