I just yet starting to learn about web serving. So, far I know domain name is used for web page addresses (URL), like if we have an URL like this:
http://is for protocol that is being used.
wwwis for hostname.
theaddress.thedomain.comis for domain name.
- and so on.
But I confused when those terms are used in linux system. Like, when I try to install Apache2 on VirtualMachine and use it as server, i still can't use the hostname instead of typing my VM IP address to the web browser.
What are they doing in the system? Are those things matter when we don't use the linux as a web server? And is it possible to address the VirtualMachine with it's hostname and domain name? Or, those two only will be used when the server is going online?