If you just want it for the server hostname you could toss a redirect in /var/www/html/cpanel/.htaccess and be done with it. No need for higher level web server config. To do it for all customer domains I think this would work: https://help.directadmin.com/item.php?id=599