03-31-2013, 07:44 PM
Join Date: Sep 2009
|I did more tests, googled and followed
So I assume you "add a global error document" also done by
'WHM Main >> Service Configuration >> Apache Configuration >> Include Editor'
short summary of my tests on apache and litespeed regarding ErrorDocument:
1. when adding a global error document, "it will remove the ability for my customers to edit their own error documents from within cPanel."
actually same for apache.
2.both apache and litespeed has hardcoded error message.
sample of apache's default 404 page:
3.not sure if there is a way to remove apahce's hardcoded error message page unless changing its source code and recompiling. (I don't search much or read the apache source code, so please correct if wrong)
The requested URL /aadasdasds567.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.3 (CentOS) Server at 192.168.2.101 Port 8080
4.the request can be addressed in 2 ways:
A. litespeed add a feature to replace the hardcoded error message;
B. when error happen, if server level error page defined, litespeed will return the server level error page eventually instead of hardcoded error page.
B looks more reasonable, and enhancement to apache. though not 100% compatible with apache in this point.