Simple WWW server Erection

Source: Internet
Author: User
Tags ftp connect fully qualified domain name microsoft iis linux

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;

1.1.3 Directory;

That is, the URI (uniform Resource indicator, the Uniform Resource Locator), if you want to go to the Web site in the home page in the directory below, then you directly enter the directory and the name of the page, you can directly access the data on that page. If you only enter the directory and the name of the Web page, and did not enter the page name, the server will automatically determine (with the server's own settings), the directory is set to the default page name;

1.1.4 Port;

When you connect to a Web site, entering "http://that.host.name" will proactively use port 80来 to try to connect to each other's hosts, but if you do not want to use the port. For example, if your Web site uses 8080 ports for WWW services, you will not be able to connect to your WWW server unless you use a firewall for port correspondence, or you can enter the "http://your.host.name" result directly in the address bar. Because it will actively connect to port 80, so here is to tell the browser, to the server to request the service of which port. That is written as "http://your.host.name:8080" can be connected to each other's port 8080;

2. The type of WWW host system;

Can be divided into two types:

One kind is the iis+ms of Windows system sql+asp WWW server, this kind of www host assumption is relatively easy, but because of some features of Windows, it is easy to be corrupted by hacker;

The other is the Linux system Apache+mysql (PostgreSQL) +php www server (lamp), which has a certain degree of difficulty in the installation, especially in the upgrade and maintenance, but set up properly, its hardware requirements, performance, Security and so on, is relatively good, the following we will mainly introduce the erection of Apache;

The history and prospect of 2.1 Apache;

In 1995, the National Association of Computer Security (NCSA) developers created the NCSZ Global Network Service software, its biggest feature is the HTTP daemon, which is more easily configured and created by source code than the then CERN server, and because of the lack of other server software at that time, he quickly became popular. But then, almost all of the server's core developers left NCSA, and some users set up an organization to manage the patches they wrote, and Apache group came into being. They call the server software Apache. Apache originates from the pronunciation of a patchy server, meaning it is full of patches. Now Apache is slowly becoming the most popular Web server software on the Internet. Of all the Web server software, Apache is an absolute advantage, far ahead of the second-ranked Microsoft IIS. If you are interested in it, you can visit the official Apache website: http://www.apache.org. Apache as one of the free software, like other free software, they are a lot of free developers devote a great deal of time and effort to achieve and gradually improve, so we have reason to believe that the future of Apache is better.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.