Support Knowledge Base >> Web Hosting >> Web Hosting Control Panel Guide >> Linux Hosting Specific Features

Search |

How do I add sub-domains to my Linux Web Hosting package?

A sub-domain is a subdivision of a Domain Name. While Domain Names need to be Registered with a Registrar, sub-domains are not and an unlimited number of sub-domains can be created through Managed DNS service. For example, a sub-domain news.yourdomain.com can be created on the Domain Name yourdomain.com.

AW GRUP allows you to create unlimited sub-domains with your Linux Web Hosting package, by adding a Star (*) Address (DNS) Record for your Domain Name through the Managed DNS Order (that is included for free with your Web Hosting package). When a visitor reaches http://<sub-domain>.yourdomain.com, he is served the content from http://yourdomain.com/sub-domain/. Let's discuss this with a few examples:

  • If someone types http://news.yourdomain.com in the browser, then our web server will try to fetch the content from http://yourdomain.com/news/.

    So you need to ensure that you have created a folder called news within your website and have an index file (within this folder).
     
  • If someone types http://news.yourdomain.com/php/ in the browser, then our web server will try to fetch the content from http://yourdomain.com/news/php/.

    So you need to ensure that you have created a folder called news within your website and within that folder, a sub-folder called php with an index file (within php folder).
     
    IMPORTANT

    If someone typed http://news.yourdomain.com/php (without the trailing forward slash), he would receive a Page not found error.

     
  • If someone types http://news.yourdomain.com/weather-report.jpg in the browser, then our web server will try to fetch the content from http://yourdomain.com/news/weather-report.jpg.

    So you need to ensure that you have created a folder called news and have weather-report.jpg (within this folder).
IMPORTANT
  1. If you are using our Managed DNS Service, then we have already created the appropriate Star Record to allow sub-domains on your Web Hosting package to begin working, once you modify the Name Servers of your domain name to ours. Click here to find information about which Name Servers to use for activating your sub-domain hosting >>

    If you are not planning to use our Managed DNS Service, then you need to add a Star Record to allow sub-domains on your Web Hosting package to begin working. Click here to find information about what DNS Records to add on your own Name Servers for activating your sub-domain hosting >>
     
  2. If you have created an Alias for your Web Hosting package and want sub-domains of each alias to also point just like your hosted Domain Name, then you need to create a Star DNS Record for each aliased Domain Name, to point to your hosted Domain Name.

    Example:

    Suppose you have a Linux Web Hosting package for yourdomain.com and also a sub-domain news.yourdomain.com. Then say, you decide to set an alias for this package as yourotherdomain.com. To accomplish this, all you need to do is create an Address Record (DNS) for yourotherdomain.com to point to the IP Address of yourdomain.com -

    yourotherdomain.com IN A 86400 1.1.1.1 (assuming that this is the IP Address of yourdomain.com)


    But say you want news.yourotherdomain.com to function as well, then you would instead need to create a Star Address Record (DNS) for yourotherdomain.com -

    *.yourotherdomain.com IN A 86400 1.1.1.1 (assuming that this is the IP Address of yourdomain.com)


    The Managed DNS Service for yourotherdomain.com could either be purchased through AW GRUP or with your current DNS Service Provider.

    Reference:

    Click here to know what a Domain Alias is >>
    Click here to know how to add Domain Aliases to your Web Hosting package >>
    Click here to know the IP Address of your Web Hosting package where your Aliased Domain Name needs to point >>

     
  3. If someone types http://php.news.yourdomain.com in the browser, then our web server will try to fetch the content from http://yourdomain.com/news/php/.
 

Created on:  
Aug 14, 2006 2:43 PM  GMT
Last Updated on:   Sep 18, 2008 2:57 PM  GMT
 
Category FTP Users 
Category Databases 
Answer Direct Download Manager  
Answer Bandwidth Theft Protection 
Answer Website Speed Booster 
Answer Redirect Manager 
Answer Scheduled Task Manager 
Answer Auto-correct URL Spelling  
Answer Fix File Permissions Manager 
Answer Branded File Extensions (Custom MIME types) 
Category Power Tools 
Answer Modifying the version of PHP for your Website 
Answer Important features of PHP5 version on AW GRUP Linux Web Hosting Servers 
Answer How do I add sub-domains to my Linux Web Hosting package?