I need to create a CNAME record like cdn.example.com that points to example.com. I need the following functionality:
when someone asks for cdn.example.com , the server to return the contents of example.com
in WHM i entered a new field like this
cdn 14400 IN CNAME example.com
(i also tried cdn.example.com)
unfortunately, when i access cdn.example.com i get the default apache webpage, and not the homepage of example.com
i know it works if i add cdn.example.com as a parked domain, but i don't want to do it like this, as i think it may involve extra DNS requests when accessing cdn.example.com (pls correct me if i'm wrong on this).
I think the main issue is being able to point the cdn.example.com CNAME to the root folder of example.com on the server. Is it possible to do this without parking cdn.example.com?
thanks!
when someone asks for cdn.example.com , the server to return the contents of example.com
in WHM i entered a new field like this
cdn 14400 IN CNAME example.com
(i also tried cdn.example.com)
unfortunately, when i access cdn.example.com i get the default apache webpage, and not the homepage of example.com
i know it works if i add cdn.example.com as a parked domain, but i don't want to do it like this, as i think it may involve extra DNS requests when accessing cdn.example.com (pls correct me if i'm wrong on this).
I think the main issue is being able to point the cdn.example.com CNAME to the root folder of example.com on the server. Is it possible to do this without parking cdn.example.com?
thanks!