I modified the /var/cpanel/userdata/$USER/$DOMAIN & $DOMAIN_SSL files with the serveralias values I want for a specific VHost but when I run /usr/local/cpanel/bin/build_apache_conf it ignores the values and the values do not get written to the /usr/local/apache/conf/httpd.conf file. So then I made changes directly to the httpd.cof file and ran the /usr/local/cpanel/bin/apache_conf_distiller --update (which Distilled successfully) then ran /usr/local/cpanel/bin/build_apache_conf and the values in httpd.conf get overwritten with the original values (not the values I entered directly OR the value I added to the userdata).
I also modified the include files /usr/local/apache/conf/userdata/[std & ssl]/2/$USER/$DOMAIN/extra.conf with the desired serveralias values but when I go the the desired URL im served the incorrect VHost (apache appears to be ignoring the included serveralias values)
If I modify httpd.conf directly and DO NOT rebuild or reload the conf file, then restart apache everything works as it should. But I would like to know how I can force build_apache_conf to use the values from the userdata.
Any help is greatly appreciated.
I also modified the include files /usr/local/apache/conf/userdata/[std & ssl]/2/$USER/$DOMAIN/extra.conf with the desired serveralias values but when I go the the desired URL im served the incorrect VHost (apache appears to be ignoring the included serveralias values)
If I modify httpd.conf directly and DO NOT rebuild or reload the conf file, then restart apache everything works as it should. But I would like to know how I can force build_apache_conf to use the values from the userdata.
Any help is greatly appreciated.