Preserve amends to /etc/httpd/conf/httpd.conf in WHM cPanel?
- by ed209
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.