Index: [Article Count Order] [Thread]

Date:  Wed, 4 Apr 2007 10:02:16 +0200
From:  Chris Hemsing <C.Hemsing (at mark) gmx.net>
Subject:  [coba-e:09457] Re: ErrorDocument Help Please?
To:  Leonard Payne <coba-e (at mark) bluequartz.org>
Message-Id:  <1893164683.20070404100216 (at mark) gmx.net>
X-Mail-Count: 09457

Hello Leonard,

on
/etc/httpd/conf/vhosts
you will find several pairs of files:
site#
site#.include

You must know your sitenumer, which you can find out with
ls -l /home/sites/the_domain_in_question

Edit the
site#.include file (the other one without the ".include" will get overwritten)
and put your
ErrorDocument 404 /slp/index.php
in there.

You will find something like
ErrorDocument 404 /error/404-file-not-found.html
in the site# file. DO NOT EDIT THIS FILE. This definition will overridden by your definition.

Chris

Tuesday, April 3, 2007, 1:08:13 PM, you wrote:


LP> On 3 Apr 2007, at 11:22, Res wrote:

>> On Tue, 3 Apr 2007, Leonard Payne wrote:
>>
>>> A program I have requires the following in the .htaccess file.
>>>
>>> ErrorDocument 404 /slp/index.php
>>
>>>
>>> It's just on a single site and not server-wide
>>
>> You can use this option in a virtualhost block in Apache
>>
>>
>> -- 
>> Cheers
>> Res


LP> Can you show me how please?

LP> Or other solutions?

LP> Regards

LP> Leonard