Kyle Vorster wrote:
Hi Guys, I am trying to tweak a apache server installed with cPanel.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; } Any one know how this could be done, or direct me to the right documents.
---------------- End original message. ---------------------This is getting a bit out of Apache territory and really ought to be asked on a cPanel forum but I will take a shot at it...
I know this is possible on Plesk (another control panel similar to cPanel). The way they do it is to have separate configuration files to handle each of the virtual host domains. You can pretty much do anything you want in those domain specific files.
It would surprise me if cPanel doesn't support a similar scheme. Dig into your cPanel documentation and see what they have to say about virtual host configuration.
Dragon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Venimus, Saltavimus, Bibimus (et naribus canium capti sumus) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx