Re: Apache Conf

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

 



HI Dragon,

Thank you for the response, cPanel does support this, but I would like to setup something where I config all this by one config file and not for each and every client.

Any idea's

Kind Regards,
Kyle Vorster

Dragon wrote:
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





---------------------------------------------------------------------
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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux