About Subdomains

Subdomains are lower-level domains hosted on a registered root domain.

For example, if you own the root domain name example.com, you can host a subdomain, sales, on your root domain. Users can access the subdomain, by typing the subdomain URL, sales.example.com, in a browser just as they do example.com. You do not have to register the subdomain, since it is based on your registered root domain name.

http://

subdomain

.

example

.

com

 

3rd level domain

 

2nd level domain

 

Top-level domain or 1st level domain

Subdomains enable you to organize and position Web data and services into distinct online channels. Supporting business units, separate product lines and diverse geographies of enterprises can be effectively web-managed as subdomains.

Note: To create subdomains, your service provider must enable subdomains for your site. You can add subdomains to name-based as well as IP-based sites. The number of subdomains you can create is also set by your service provider at the time of creating your site.

Advantages of Subdomains

Subdomains offer the following advantages:

  1. Reinforce branding and Web presence

    Subdomains enable you to create distinct online service channels for affiliated business data and services while preserving brand association. This reinforces brand value and extends your Web presence through alternative channels of service.

  2. Simplify management of large domains

    Large domains can be split up into separate logical entities in alignment with your organizational setup and web-managed separately. Thus, your enterprise can have a separate yet affiliated Web presence for sales, support, human resources, and other business divisions apart from your primary Web site.

  3. Independent private online repository of content

    Each subdomain has its own private repository of online content resources. The subdomain folder contains all the content resources necessary for the subdomain to be accessible from a Web browser. This segregation averts content or resource violation and ensures secure management of subdomain content.

The Subdomain Environment

Subdomains, at the file system level, are simply subfolders that contain the requisite Web content for the subdomain.  

You can create two types of subdomains:

Subdomains inherit the security level and aliases defined for the root domain. The security level inherited by the subdomain determines the operating environment of the subdomain. You can enable CGI Support for subdomains to enable users to run CGI scripts.

Aliases

Aliases are nicknames or alternative web addresses that map to an existing subdomain. Subdomains inherit the aliases configured for the root domain. To determine if aliases are available for the subdomain, see the URL field in the Subdomains Details form. You will find the subdomain URL along with the list of aliases (if the root domain has aliases).

Note: You can access subdomains using aliases only if the root domain is configured with aliases.

If your root domain, example.com, is configured to be accessible using the alias, example.net, then the subdomain, sales, hosted on the root domain can also be accessed using the alias, sales.example.net.

CGI Support

CGI scripts enable you to capture and process information dynamically. They can be used to retrieve information from a database, collect Web statistics and perform searches.

CGI scripts are placed in the cgi-bin directory under the subdomain folder. Thus, if the subdomain, sales, is located within the /var/www/sales/ directory, then the CGI scripts for the subdomain will be placed in the /var/www/sales/cgi- bin/ directory in the root domain's file system.

To run a subdomain CGI script, in the Address field of your Web browser, type the following:
http://<subdomain_name>.<domain_name>/cgi-bin/<script_name>  
where:
<subdomain_name> is the name of your subdomain
<domain_name> is the domain name of the site on which your subdomain is hosted
<script_name> is the name of the cgi script

As a Site Administrator, you can:

Before Creating a Subdomain

Before creating a subdomain, have the following information ready.