Implement the @ virtual domain name system in the Web

zhaozj2021-02-12  140

Many netizens may find that now in some websites, especially in the personal website, find virtual domain names that use Youname@xxx.com. When I told my friend, they all said that this is not the address of an email? In fact, it is true, but if it is input to the address of the browser, it is not a child name. If you don't believe, you enter http://bbs@luyu.net and http: //guestbook@luyu.net in the browser. Is it found that they are two different addresses, the former is the BBS login page of this site, the latter is a message book, but this site is the homepage is http://luyu.net, cool. Some netizens also asked why not do virtual domain names in http://bbs.luyu.net and http://guestbook.luyu.net, this is the real secondary domain name. Because this is nothing different in terms of implementation, just "." The role in the domain name can be greatly different, you can access it with http://www.luyu.net, I don't have http: // www @ luyu @ Net, because "." To take into account a problem with the decoding. So do "." The virtual domain name must let the domain name service provider to open the pan-domain name, just type * .luyu.net in the browser's address bar, will go to the Luyu.NET server first to request the resolution decoding Service, this, realize unlimited multiple free "." The virtual domain name is not difficult. Most of the pana-name open is to collect 100 to 200 yuan, so we don't consider free @ domain names. Some netizens also asked why not use "! # $%" Other symbols and @, this is to read the article below you will understand.

You can make your own @ domain name by this article. When you are, you are an administrator, you can add any links, including Chinese, think about it directly http: // Wallpaper @ luyu.net Too cool. However, Chinese should pay attention to the UTF-8 specification issue.

Let's take a look at all aspects of the @ virtual domain name.

The @ virtual domain name begins to log in to the FTP server directly in the user and password in the browser. Such as: Type Password: username @ ftp: //my.ftp.com, IE will automatically log in to the FTP server with the user "username" and password "password"; equivalent to first in the browser In the address bar, type ftp://my.ftp.com, enter the login page, and then enter the username and password under the prompt. Why is this? It turns out in the HTTP1.1 protocol, it is specified that the HTTP access authorization function is implemented, and the form is like the above Password: username @ ftp or the server host sent by Header. Then, the password can be omitted, that is to say to access the username @ server host, it is equal to accessing this server host as UserName, so I think everyone will understand why we can use @, not other symbols Let it be. So guestbook@luyu.net, actually to access the luyu.net host with guestbook users, can you access the page of the message board? In fact, this is just a simple page jump function, which will be discussed below.

The function of implementing the jump means that this page will be automatically linked to a new page when the user enters a page. For example: When you play http://luyu.net, entering actually http://luyu.net/index.html or http://luyu.net/default.html is def.html. This is not my own passion to modify the server's default connection document, and you can't modify most cases (because it is not your own server). In fact, when you play http://luyu.net, the browser is first enters the Default.html page, and then the JavaScript inside is turning, if you don't believe, you can open my default.html document and see if you look. However, we will also put it out below. In fact, only the following lines in my default.html document: