Gentoo Archives: gentoo-user

From: Hans-Werner Hilse <hilse@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Apache Conf
Date: Fri, 30 Mar 2007 11:23:58
Message-Id: 20070330131831.2560c265.hilse@web.de
In Reply to: [gentoo-user] Apache Conf by Kyle Vorster
1 Hi,
2
3 On Fri, 30 Mar 2007 12:37:46 +0200 Kyle Vorster <kyle@×××××××.za> wrote:
4
5 > What I am trying to do is set server-wide 'custom' error pages, but
6 > when a user uploads his own set of 'custom' error pages it should
7 > over-right the server-wide pages and display the users pages.
8 >
9 > so looking at something like this
10 >
11 > if (is_file(/home/$user/public_html/404.shtml))
12 > {
13 > display /home/$user/public_html/404.shtml;
14 > } else {
15 > display /usr/local/apache/htaccess/404.shtml;
16 > }
17
18 Let the user configure it himself. Global setting can be overridden by
19 VHost config, Directory section and even .htaccess files (given that
20 you set AllowOverride accordingly). See:
21 http://httpd.apache.org/docs/2.0/mod/core.html#errordocument
22
23 If you really want to automatize it, specify a CGI as ErrorDocument and
24 have that handle your conditional file output.
25
26 -hwh
27 --
28 gentoo-user@g.o mailing list