To covert an IP based site to name based site in ensim run following command as a root user on shell.
#EditVirtDomain -c ipinfo,namebased=1,ipadrs=\[\] domain_name
where
domain_name is the domain name of the site
e.g. EditVirtDomain -c ipinfo,namebased=1,ipaddrs=\[\] mydomain.com