How do I create a Subdomain?
Definition: Subdomain
A Subdomain is an extension of your primary domain or an Addon Domain that can serve as both an E-mail Domain and website location.
Creating a Subdomain
Configuration
A Subdomain may be added within Control Panel under Web > Subdomains. A Subdomain may exist in a few flavors and likewise function differently:
Subdomain
- Create a new Subdomain: Basic Subdomain name, e.g. "portfolio" -> portfolio.example.com
- Create a Subdomain fallthrough: A fallthrough will serve documents only if no other subdomain is matched. This is useful for WordPress Multisite setups on a Subdomain, e.g. sports.example.com, people.example.com, finance.example.com all served from 1 location. Any subdomain that exists, however, will serve content from that Document Root.
Subdomain Document Root
A Document Root is the location from which web site content is served. This may be shared by multiple Subdomains by specifying the same location.
"www" Exception
Any Subdomain is valid, except a Subdomain beginning with a "-" or "_" and "www", which is automatically created to access your main domain. (www.example.com)
Placeholder File
Once a Subdomain is created, a basic index.html
placeholder is created in the directory to let you know everything is working. Remove or replace this file once confirmation is acknowledged. This is necessary to run Passenger-based applications or even PHP applications, like WordPress or Drupal.
Subdomain Affinity
A Subdomain Affinity will create the Subdomain on one or many domains. Route53 DNS will be automatically assigned to these domains only when your assigned dynamic name servers are in use.
DNS for third-party providers
You may wish to use third-party nameservers apart from ours. If you use third-party nameservers, you are responsible for setting DNS for the domain and its Subdomains. Submit the following DNS template to your third-party DNS provider:
<subdomain> IN A <IP address>
www.<subdomain> IN A <IP address>