First in mind you must have the domain you want to point to the subdomain point to your dns.
Next you will need to add DNS records for the domain.
Login to the Administrator Panel on Ensim and click on the DNS link under services.
Click on the link that says "Zone List"
Then click on Add a New Zone.
Put in the domain name that you need to create the zone for.
Once you add the zone, you should see two records already with your nameservers in both.
Next, add two A records one with www in front of the domain and one with nothing in front of the domain and put in your IP number of your server.
Next, find the path where the subdomain exists. For example: radio.maindomain.com maybe located in /home/virtual/maindomain.com/var/www/html/radio or /home/virtual/maindomain.com/var/subdomains
Make sure you note the site/admin number. You can look up the number by simply doing ls -la in the directory of the domain /home/virtual/maindomain.com/var/www/html
Once that is done.. cd to /etc/httpd/conf/virtual
View the site# (The # is what you noted before)
I copied this information in the site# to notepad and edited:
Make the following changes:
ServerName: Put in the domain that you want it point to the subdomain
(For an example: site1's main domain is www.lala.com) You want to insert the new domain in place of that. - www.newdomain.com
ServerAlias: Put in the new domain with out the www. infront.
DocumentRoot: Change this to the path of the subdomain. (Example: /home/virtual/maindomain.com/var/www/html/radio, /home/virtual/maindomain.com/var/subdomains/radio)
The first two
Example:
Example:
Then at SetEnv SITE_HTMLROOT:
Change it to /home/virtual/site#/fst/var/www/html/radio or it can be
/home/virtual/site#/fst/var/subdomains/radio (depending how your subdomains are setup)
Then save this document in the /etc/httpd/conf/virtual directory with whatever file name you want on the server and restart apache and your done!