Custom Error Page - 401 404 etc.

1. CentOS 5 needs to be added to pull-down menu above.

[This is really a low priority bug; so investigate when you have time)

2. Custom error pages (Error 401, 404 etc.) via > Virtualmin > Services > Configure Website > Error Handling, does not work on CentOS 5 (or rather Apache 2.2).

For some reason, Apache always look at /var/www/error instead of the location of the custom error html files.

Example:

> Virtualmin > Services > Configure Website > Error Handling

If you add 401 and location to /errors/401.html (which should lead to the website's error directory http://www.funnybone.com/errors/401.html), it doesn't lead you there.

You will get the standard 401 error page PLUS an error message underneath saying Error 404 File Not Found for the custom error file.

When I look at the Apache Error Log, I see that Apache was trying to serve /var/www/error/401.html (which is not in existence) instead of /home/funnybone.com/public_html/errors/401.html.

Note that my DocumentRoot default in my httpd.conf is /var/www/html, although all the virtual server home directories are created in /home.

AllowOverride All is set in the virtual host's directive.

I even tried using a .htaccess in public_html to direct to the custom error pages. No luck there.

Status: 
Closed (fixed)

Comments

same problem please help

Ilia's picture
Submitted by Ilia on Fri, 02/14/2020 - 01:42

Hi, :-)

This issue is about 13 years old. Please open the new ticket describing what's wrong. (ohh yeah, and don't forget to grant me your dog's permission, as well!)