Symptoms

When an IP is added to the <VirtualHost line in /var/cpanel/templates/apache2_4/vhost.local and a cPanel accounts IP is changed with API "whmapi1 setsiteip" the template is not used.

 

Description

When using API "whmapi1 setsiteip" to change an accounts IP address the VirtualHost set in /var/cpanel/templates/apache2_4/vhost.local is not used and creates an incomplete VirtualHost. The template should be utilized for this change.

We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-48817. Follow this article to receive an email notification when a solution is published in the product. 

 

Workaround

httpd.conf can be rebuilt using the template with:

/scripts/rebuildhttpdconf