Resolution
For that purpose you should add an entry into domain's zone DNS like:*.domain.com. CNAME domain.com.
and configure Apache with the following line in the domain's vhost.conf:
ServerAlias *.domain.com
After the changes have been made do not forget to restart apache (with
"PRODUCT_ROOT_D/admin/bin/websrvmng -a -v") and BIND services to apply changes.