Current location - Training Enrollment Network - Mathematics courses - What is a web page? What is the home page? What is a website?
What is a web page? What is the home page? What is a website?
/article/2c 8 c 28 1 df 0 AFD 00008252 aa 7 . html

Domain name, I believe everyone does not default, has been used countless times! For example:

Google.com, Baidu.com, 163.com, etc.

At this time, you may wonder why Bian Xiao didn't add www in front.

Because under normal circumstances, shouldn't it be www.baidu.com or something?

Here, Bian Xiao can clearly tell you that with www, it is no longer a domain name!

Let's analyze the following passage:

/index.html

1): This is the domain name, which is the unique name used to locate the website.

4)mail. 163.com: This is the name of the website, which consists of the server name and the domain name.

5)/: This is the root directory, that is to say, find the server by the website name, and then store the root directory of the webpage in the server.

6:) index.html: This is the default webpage under the root directory (of course, I don't know if this is the default webpage of 163, but most of the default webpages are index.html).

7)/index.html: This is called URL, uniform resource locator and global address, which is used to locate resources on the Internet.

Maybe by this time, you still don't understand, what's the difference between this domain name and the website name?

Well, Bian Xiao will tell you!

For example, you bought a university, and its name is myname.com.

Then, you want to establish a language department, so the liberal arts building is established, called yuwen.myname.com.

Then, you want to set up a math department. Well, shuxue.myname.com has been set up.

Like 163, his domain name is 163.com, and he wants to build a www server, so he has www.163.com.

He wants to play the mailbox server again, so mail. 163.com is also ok.

So, do you understand?

So, just mentioned:

/index.html

Among them, index.html is the default webpage.

However, when we enter the website, we usually enter directly.

Mail. 163.com or www.baidu.com. Why?

Then look down.

You know, we can not only access files, but also access directories.

For example:

/

Access the current root directory/.

If you don't know what the root directory is, you can consult Baidu, so I won't go into details here.

At this point, the web server will check whether there is this directory at present, ok, there must be. So, will the server return the whole directory to you? Don't!

The server will look for the default web page in its own directory, usually index.html. Of course, it can be modified by configuring the web page. Bian Xiao built Apache under LINUX, and the configuration file was specially modified. You can also try.

After that, the server finds index.html in the directory and returns it to the web browser.

Therefore, when we visit www.baidu.com, the browser will automatically add it for us.

And Baidu's server, after receiving the request, will automatically add/,become:

/.

Then, Baidu server will look for index.html or other default web pages in this directory, which is Baidu's homepage, and return them to you through the http protocol. That is, the Baidu homepage you see.