PDA

View Full Version : Custom error documents


Gerry
03-10-2008, 03:39 AM
We use the following to create custom error documents to remove the LiteSpeed footer in these and use our own:


Alias /cust_err_doc/ "/config/var/http/"
ErrorDocument 400 /cust_err_doc/errors/400.php
ErrorDocument 404 /cust_err_doc/errors/404.php
ErrorDocument 403 /cust_err_doc/errors/403.php
ErrorDocument 500 /cust_err_doc/errors/500.php


However, when adding the following, the server started acting strangely:

ErrorDocument 301 /cust_err_doc/errors/301.php
ErrorDocument 302 /cust_err_doc/errors/302.php

For example, accessing http://site.tld/folder did NOT work, http://site.tld/folder/ did work, so there was obviously somethign wrong with the 301 code.

Is there a way to do this? Can we have a list of the codes that can be overridden this way?

mistwang
03-12-2008, 03:45 PM
Fixed in up coming 3.3.8 release.