Hi all

We have WHM 11.2.0 cPanel 11.11.0-R16789 TRUSTIX Enterprise 2 i686 - WHM X v3.1.0

Recently when creating accounts, the ServerName and ServerAlias directives in the VirtualHost containers found in httpd.conf are swapped around.

If i look through the httpd.conf file, sites creates before 27/July have have settings such as:

<VirtualHost>
[...]
ServerAlias domain.com
ServerName www.domain.com
[...]
</VirtualHost>


But sites created after 27/July have this:
<VirtualHost>
[...]
ServerAlias www.domain.com
ServerName domain.com
[...]
</VirtualHost>

I.e. the ServerName and ServerAlias contents are switched over. We have a PHP based CMS that relies on the $_SERVER['SERVER_NAME'] variable, however, since this swap over it's causing some issues when deploying our CMS.

I've checked bugzilla.cpanel.net but couldn't spot anything relevant

Is this a known issue or bug?

Thanks


G