IIS configures the problem of binding a level two domain name _win server

Source: Internet
Author: User
Basically a few concepts, but see these things basically understand the meaning of pan-resolution and universal binding, finally gave me a successful configuration. Here's a question:

Host header is bound domain name, no domain name does not need to set the main head.

The so-called main head of the name from IIS in the domain binding function, the general Web server an IP address of 80 ports can only correctly correspond to a Web site, processing a domain name access request. The Web server, without using multiple IP addresses and ports, requires a mechanism to distinguish the requests of different Web sites on the same IP address if it is necessary to support multiple, relatively independent sites, which presents a method of host header binding. Simply put, the different site space corresponding to different domain names, to connect the domain name field in the request to distribute and answer the correct corresponding space of the file execution results.

For example, a server IP address of 192.168.1.10, with two domain names and corresponding space on this server, uses the 192.168.1.10 80 ports to provide services. If the domain name records of two domains A and B are simply resolved to this IP address, then the Web server will be receiving any request feedback is the same site information, which is clearly not up to the requirements. Next we use host headers to bind domain A and b to their corresponding space folders C and D. When the Web request information containing a domain A is reached 192.168.1.10, the Web server executes the first file of its corresponding space C and returns it to the client, which contains the Web request information of Domain B, which is interpreted only as a document of space d. Therefore, the use of Host header binding function can not use IP address to access any site on it, because the request information does not exist domain name information, so there will be an error.

Open IIS Manager, site management, the original site regardless, at the default site point right key, properties, set the Default Web site properties.

Point advanced, set the default value, IP All unassigned (default, do not move), port 80 (typically 80), the host header value is empty. Are you sure

Then set the home directory for the company folder, such as: E:\wwwroot\company, (Destoon system's home directory is E:\wwwroot\), as shown in figure:

If no surprises, the generic domain name binding has been successful.

Work Summary: When the problem arises, the network may not be able to find the right solution, but will give you some clues, or to rely on their own more research to try more than once, try more than a few times. Failure is the mother of success, so you have no reason to hate him.

Author:: Package a positive ( www.goldball.cn ), original link: http://www.goldball.cn/blog/jishu/176.html

All rights reserved. Reprint must be linked to the form of the author and original source and this statement

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.