If you are a Linux enthusiast, you may have mastered basic Linux knowledge and operations, and no doubt you are not going to meet such a small achievement; why is Linux so popular? Its biggest feature is the powerful, stable performance of the server application. Like Www,mail,ftp, DNS and SMB; In this article, we start with some of the most basic operation of the Web server, from the attitude of beginners, so that everyone correctly and fully understand the server Apache;
1. About WWW and URLs;
WWW is the World Wide Web abbreviation, translation is the Global wide area network, it can join text, graphics, video and sound multimedia, and through hypertext (hypertext) way, the information through the Internet to the world everywhere;
For example: In the browser's address bar, enter "http://www.linuxsir.org", you can log on to the Linuxsir Web site browsing information, where "http://www.linuxsir.org" is the URL (uniform Resource Locator, the same resource locator), "www.linuxsir.org" is the host name, which is the FQDN in DNS (fully qualified domain name, fully compliant with the standard domain name), That is, the host name plus the domain name of a unique Internet name above. Because the computer only recognizes the IP in the network, therefore, the real IP of the Linuxsir station is found by DNS resolution www.linuxsir.org, and then through the WWW agreement will pass the data to your front;
The format of the 1.1 URL;
<协议>://<主机地址>[:端口]/<目录>
1.1.1 Agreement;
includes several common protocols for Http,ftp,news,gopher and Telnet. Among them, HTTP is the "host of HTTP port, typically 80 port", FTP is the use of "host FTP port, typically 21 ports." Note: 80 and 21 are the services provided by the host, not the client's port.
1.1.2 Host address;
When you enter a host name (domain name), you must allow the host name to be the corresponding IP through the translator. Translator is/etc/hosts or/etc/resolv.conf inside the setting to provide a normal WWW server, the host name must let everyone can translate to IP, which requires to apply for a legitimate domain name;