Multiple sites, but subdomain names

https://blog.csdn.net/baidu_3.

I can configure domain
according to his settings, but I want him to change it into a subdomain name
such as
xxx.ccc.com/
. How can I set it?
do you want to transfer the domain name to the same IP?

        ServerName xxx.ccc.com
        DocumentRoot /var/www/xxx

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
Menu