I sincerely thanks to @meetbala , for share this with me.
I added Hosts file for run a domain in your local system demo video too at below..
The hosts file is a computer file used in an operating system to map hostnames (shareourideas.com) to IP addresses.
Hosts file is one of several system facilities to assist in addressing network nodes in a computer network. It is a common part in a operating system's Internet Protocol (IP) implementation, and serves the function of translating human-frien...
More
Domain
Sub domain
What is a Sub domain?
In order to understand what a sub domain is, first let's look at a regular domain. Most domains look like the following; www.wordpress.com. Each domain refers to a specific site on the web and the search engines acknowledge each domain as a separate web site. While many domains have several web pages, each extra page is still considered the same site (for instance, www.wordpress.com/UserName).
While this is an easy way to add extra pages to your web site, for most web deve...
More