|
Chapter 3: Configuring Web Sites and Servers continued
Web Site Naming and IdentificationThis section discusses Web site naming and identification techniques. Each Web site deployed in the organization has unique characteristics. Different types of Web sites can have different characteristics. Intranet Web sites typically use computer names that resolve locally and have private Internet Protocol (IP) addresses. Internet Web sites typically use fully qualified domain names and public IP addresses. Intranet and Internet Web sites can also use host header names, allowing single IP address and port assignments to serve multiple Web sites.
Understanding IP Addresses and Name ResolutionWhether you are configuring an intranet or Internet site, your Web server must be assigned a unique IP address that identifies the computer on the network. An IP address is a numeric identifier for the computer. IP addressing schemes vary depending on how your network is configured, but they’re normally assigned from a range of addresses for a particular network segment. For example, if you’re working with a computer on the network segment 192.55.10.0, the address range you have available for computers is usually from 192.55.10.1 to 192.55.10.254.While numeric addresses are easy for machines to remember, they aren’t easy for people to remember. Because of this, computers are assigned text names that are easy to remember. Text names have two basic forms:
Private networks are networks that are either indirectly connected to the Internet or completely disconnected from the Internet. Private networks use IP addresses that are reserved for private use and aren’t accessible to the public Internet. Private network addresses are:
Private networks that use Internet technologies are called intranets. Information is delivered on intranets by mapping a computer’s IP address to its text name, which is the NetBIOS name assigned to the computer. While Windows components use the NetBIOS naming convention for name resolution, Transmission Control Protocol/Internet Protocol (TCP/IP) components use the Domain Name System (DNS). Under Microsoft Windows, the DNS host name defaults to the same name as the NetBIOS computer name. For example, if you install a server with a computer name of CorpServer, this name is assigned as the NetBIOS computer name and the default DNS host name. In contrast, public networks are networks that are connected directly to the Internet. Public networks use IP addresses that are purchased or leased for public use. Typically, you’ll obtain IP address assignments for your public servers from the provider of your organization’s Internet services. Internet service providers obtain blocks of IP addresses from the American Registry for Internet Numbers. Other types of organizations can purchase blocks of IP addresses as well. On the Internet, the DNS is used to resolve text names to IP addresses. A hypothetical DNS name is www.microsoft.com. Here, www identifies a server name and microsoft.com identifies a domain name. As with public IP addresses, domain names must be leased or purchased. You purchase domain names from name registrars, such as Internet Network Information Center (InterNIC). When a client computer requests a connection to a site using a domain name, the request is transmitted to a DNS server. The DNS server returns the IP address that corresponds to the requested host name, and then the client request is routed to the appropriate site. Don’t confuse the public DNS naming system used on the Internet with the private naming system used on intranets. DNS names are configured on DNS servers and resolved to IP addresses before contacting a server. This fact makes it possible for a server to have multiple IP addresses; each with a different DNS name. For example, a server with an internal computer name of Gandolf could be configured with IP addresses of 207.46.230.210, 207.46.230.211 and 207.46.230.212. If these IP addresses are configured as www.microsoft.com, services.microsoft.com, and products.microsoft.com, respectively, in DNS server, the server can respond to requests for each of these domain names.
Understanding Web Site IdentifiersEach Web site deployed in your organization has a unique identity it uses to receive and to respond to requests. The identity includes the following:
The way these identifiers are combined to identify a Web site depends on whether the host server is on a private or public network. On a private network, a computer called CorpIntranet could have an IP address of 10.0.0.52. If so, the Web site on the server could be accessed in the following ways:
On a public network, a computer called Dingo could be registered to use the DNS name www.microsoft.com and the IP address of 207.46.230.210. If so, the Web site on the server could be accessed:
Hosting Multiple Sites on a Single ServerUsing different combinations of IP addresses, port numbers, and host header names, one can host multiple sites on a single computer. Hosting multiple sites on a single server has definite advantages. For example, rather than installing three different Web servers, one could host www.microsoft.com, support.microsoft.com, and service.microsoft.com on the same Web server.
NOTE: Windows 2000 Professional can host only one Web site and one FTP site. You must upgrade to Windows 2000 Server to host multiple Web or FTP sites. One of the most efficient ways to host multiple sites on the same server is to assign multiple IP addresses to the server. An example is shown as Figure 3-1. To use this technique, you must follow these steps:
With this technique, users can access the sites individually by typing the unique domain name or IP address in a browser. Following the example shown in Figure 3-1, you can access the Sales intranet by typing http://SalesIntranet/ or by typing http://10.0.0.102/. Figure 3-1. Using multiple IP addresses to host multiple Web sites on a single server. Another technique you can use to host multiple sites on a single server is to assign each site a unique port number while keeping the same IP address, as shown in Figure 3-2. Users will then be able to
Figure 3-2. Using multiple port numbers to host multiple Web sites on a single server. The final method you can use to host multiple sites on a single server is to use host header names. Host headers allow you to host multiple sites on the same IP address and port number. The key to host headers is a DNS name assignment that is configured in the name resolution system and assigned to the site in its configuration. An example of host header assignment is shown in Figure 3-3. Here, a single server hosts the sites CorpIntranet, EngIntranet, and SalesIntranet. The three sites use the same IP address and port number assignment but have different DNS names. To use host headers, you must do the following:
Host headers have specific drawbacks. Earlier versions of browsers that don’t support HTTP 1.1 are unable to pass host header names back to Internet Information Services (IIS). Although Microsoft Internet Explorer 3.0, Netscape Navigator 2.0, and later versions of these browsers support the use of host header names, earlier versions of these browsers do not. Visitors using earlier browsers will reach the default Web site for the IP address. Figure 3-3. Using host headers to support multiple Web sites on a single server. Another drawback to host headers is that you cannot use host headers with Secure Sockets Layer (SSL). With SSL, Hypertext Transfer Protocol (HTTP) requests are encrypted, and the host header name within the encrypted request cannot be used to determine the correct site to which the request must be routed.
Checking the Computer Name and IP Address of ServersBefore you configure Web sites, you should check the computer name and IP address of the server. You can view the computer name by completing the following steps:
TIP: You can change the computer and domain information by clicking Properties and entering new values. If 0the computer is a domain controller, you won’t be able to make these changes without demoting the server. Keep in mind these settings reflect what the computer knows its name as. You must still create entries on a DNS server for proper name resolution. You can view the IP address and other TCP/IP settings for the computer by completing the follow steps:
Figure 3-4. Use the Internet Protocol (TCP/IP) Properties dialog box to view and configure TCP/IP settings.
REAL WORLD: IIS servers should use static IP addresses. If the computer is obtaining an IP address automatically, you’ll need to reconfigure the TCP/IP settings. See Chapter 15, "Managing TCP/IP Networking," in Microsoft Windows 2000 Administrator’s Pocket Consultant for details.
Last Updated: Friday, July 6, 2001 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||