Preserve amends to /etc/httpd/conf/httpd.conf in WHM cPanel?

Posted by ed209 on Server Fault See other posts from Server Fault or by ed209
Published on 2010-08-13T09:19:54Z Indexed on 2011/03/14 16:12 UTC
Read the original article Hit count: 333

Filed under:
|
|
|
|

Is there a way to preserve amends we make to first (default) VirtualHost container in /etc/httpd/conf/httpd.conf?

We have a custom setup for a site and we want all unmatched hostnames to be caught by that VirtualHost. As per Apache manual all unmatched hosts are processed by first VirtualHost directive, hence we copied DocumentRoot, suPHP user and some other values from out main site's VH.

Running /usr/local/cpanel/bin/apache_conf_distiller --update and then /usr/local/cpanel/bin/build_apache_conf reverts our changes.

© Server Fault or respective owner

Related posts about apache

Related posts about cpanel