[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Custom error page not working



----- Original Message -----
From: "Paul Harvey" <paul@xxxxxxxxxxxxx>
> I have tried to install a custom error page in a .htaccess file as
follows:
> ErrorDocument 404 /404.html
>
> This works fine on my Raq3 but I get an Internal Server Error on my Raq4.
>
> I have tried to amend the access.conf file to include the following:
>
> AllowOverride AuthConfig Limit Options Indexes FileInfo
>
> and several combinations of these but without success.
>
> Each amendment has been followed with a /etc/rc.d/init.d/httpd restart and
I
> have checked the file permissions are OK.

I found that there were actually two AllowOverride lines in the access.conf
file and I was using the wrong one. Most of the posts I found in the
archives were quite ambiguous on this point. The second one is the correct
one.

The first one is close ot the top and is this:

<Directory />
Options None
AllowOverride AuthConfig Indexes Limit
AuthFailDelay 2000000
</Directory>

The second one is a bit further down and now says this:

# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"

AllowOverride AuthConfig FileInfo Indexes Limit


This worked for me, make sure you test it in the root /web directory first
because I haven't tried sub-directories. In order to avoid potential
confusion I also tested it with a simple line in .htaccess like:

ErrorDocument 404 "blah


Regards

Chris Bell
BlueSkyHost.com
--