A subdomain is one way of organizing and separating content on your site. You’re already familiar with the concept of subdomains, even if you don’t know it. Consider Davidson’s public web site and our Domains site: davidson.edu & domains.davidson.edu
Our davidson.edu site is the main domain and the domains site is a subdomain. Subdomains serve two purposes: they help to organize the site from a technical perspective, but they also serve as indications to the users that they are in a new/different space. As you work on your site, you’re welcome to create as many subdomains as you like, and in each subdomain you can actually create a distinct, individual web site.
Setting up subdomain
- Go to the domains.davidson.edu and click Dashboard on the top right hand side of the screen to login.
- Log in with your Davidson email address and password.
- Once logged in you’ll be at the homepage of your cPanel. Locate the Domains section by scrolling down the page.
- Click on Subdomains.
- Choose a name for your subdomain, and type it into the Subdomain box. Just like root domains (e.g. yourname.com), subdomains can only contain numbers, letters, and hyphens, and the best subdomains are simple, short, and descriptive.
- Once you’ve typed in a name, cPanel will automatically populate the Document Root field for you. This will create a folder to contain your subdomain’s files. You’ll usually want this folder to match the name of your subdomain, so it’s easy to identify where different files live in your account. You might want to change the document root if you already have a folder in your account that has the same name as the subdomain you are trying to create, although this should be rare.
- Once you’re done, click Create. If everything went well, you should see a message that your subdomain was created successfully. Your subdomain will now be available as an option for automatic installation of various software (wordpress, omeka etc). If you prefer to install web applications manually, you can do so in the document root you created in step 5.