IIS server host header configuration

Source: Internet
Author: User

Each host has an IP address. If the Host header is configured but you browse a web site (such as a http://www.hao123.com) without displaying your site, this indicates that the website does not point to the IP address of the host. If you want the website to point to the IP address of the host, you need to configure your domain name to point to, specifically Baidu, or ask your domain name supplier to help you modify the IP address pointed to by your domain name.
The Host Header takes effect only when the accessed domain name can be correctly located on the host.

In this case, the host header must be configured completely. For example, if your domain name is mydomain.com, the host header can be sns.mydomain.com, admin.mydomain.com, or others, however, all must be complete with your domain name, not just SNS or admin; because a URL address is divided into the following parts:

Take http://video.google.co.uk: 80/videoplay? Docid =-7246927612831078230 & HL = en # 00h02m30s as an example * the transmission protocol is HTTP. Similar protocols include https, FTP, and etc.
* Host or host name: video. Google. co. uk.
* The sub-domain name is video.
* The domain name is Google. co. uk.
* The top-level domain name (TLD) is UK. UK refers to the national top-level domain name (ccTLD ). For example, the top-level domain name of Google.com is com.
* The second-level domain name (SLD) is com. uk.
* Port: 80, which is the default port of the Web server. Other ports are also allowed. For example, the web server can listen to port 8000. When the port is 80, many people leave it empty.
* Path:/videoplay. A path usually refers to a file or a location on the Web server. For example,/directory/file.html.
* The preceding URL contains parameters. The parameter name is docid and the parameter value is-7246927612831078230. URLs can have many parameters. The parameter is subject to question mark (?) Start, separated.
* Have you seen "# 00h02m30s? This is called a string or a named anchor. A string is usually an internal part of a webpage file. In this example, the name of the anchor is "Jump to the video after 2 minutes 30 seconds ".

The Host Header set in IIS is actually the host name part in the URL. When IIS encounters this host name, the website corresponding to this host name is displayed. The host header can also be set to multiple levels, for example, you can set it:
Test. test. video. google. co. uk and IIS can locate the corresponding website correctly.

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.