How to get a CNAME subdomain to point to different URL?

One of my friend told me that it was possible to do using Plesk older version...
subDomain.DOMAIN.com --> CNAME -> diffDomain.com

and when you would call subDomain.DOMAIN.com it would actually server all files from diffDomain.com
and if there was a file like page1.html on diffDomain.com
you can use
subDomain.DOMAIN.com/page1.html and it would work as well...
anything like that can be done by modifying the httpd.conf file? or any other ways in linux server that has cpanel/whm ?

 

 

 

 

Top