Hi, On Fri, 30 Mar 2007 12:37:46 +0200 Kyle Vorster <[EMAIL PROTECTED]> wrote:
> What I am trying to do is set server-wide 'custom' error pages, but > when a user uploads his own set of 'custom' error pages it should > over-right the server-wide pages and display the users pages. > > so looking at something like this > > if (is_file(/home/$user/public_html/404.shtml)) > { > display /home/$user/public_html/404.shtml; > } else { > display /usr/local/apache/htaccess/404.shtml; > } Let the user configure it himself. Global setting can be overridden by VHost config, Directory section and even .htaccess files (given that you set AllowOverride accordingly). See: http://httpd.apache.org/docs/2.0/mod/core.html#errordocument If you really want to automatize it, specify a CGI as ErrorDocument and have that handle your conditional file output. -hwh -- gentoo-user@gentoo.org mailing list