Creating a Subdomain in Webhost

Posted in Tutorials

Tweet This Share on Facebook Bookmark on Delicious Digg this Submit to Reddit

In our example, we are creating a subdomain http://rubyexample.learnwebtutorials.com using CPanel on our webhost…

Create subdomain

The web root for this subdomain will be in /public_html/rubyexample

After clicking the Create button, that folder will be created on your server for you.

And you see your subdomain listed …

Subdomain created

There is a Remove button should you want to remove the subdomain later.  But the folder will not be deleted from the server.

By putting a default HTML page in this folder (it could be index.html, default.html, index.php, etc depending on your host), you should be able to see that default page when you navigate to your subdomain in your browser…

default page in subdomain