Find the default httpd config
/etc/httpd/conf/httpd.conf
Find the userdata folder
/usr/local/apache/conf/userdata
IPut the same directive in httpd.conf under and it work:
<VirtualHost 162.210.xxx.xxx:80>
ServerName example.com
</VirtualHost>
You'll need to run /usr/local/cpanel/scripts/ensure_vhost_includes after the modifications, as documented here Modify Virtualhost Containers With Include Files - EasyApache - cPanel Documentation
or do the following:
/var/cpanel/userdata/USERNAME/DOMAIN.COM
1. Once you have opened the file, look for the following line:
documentroot: /home/USERNAME/public_html
2. Modify the location according to your needs. Save it and exit.
3. Rebuild the Apache conf and restart Apache:
/scripts/rebuildhttpdconf
service httpd restart
The change will be immediate. Simply clear your browser cache and force refresh the page!