Get an IP Address

Our next step is to obtain two IP addresses from our ISP (or choose from the block of addresses you already have available). Then we can assign the two addresses to the server: one IP address for the test site, and the other IP address for the production site. It’s important that you get static IP addresses that won’t change, because changing IPs will cause the web site to be inaccessible until the DNS is updated.

After we have our static IP addresses, we can then assign them to the server:

  1. In the Control Panel, open Network Connections.

  2. Double-click the connection that will use this IP address. Depending on your machine, you may have one or more connections listed here.

  3. In the Status dialog box that pops up, click on the Properties button.

  4. The Properties window for this connection will pop up. In the Properties window, select Internet Protocol (TCP/IP), and then click Properties.

  5. Click the Advanced button in the Internet Protocol (TCP/IP) Properties window that pops up to access the Advanced TCP/IP Settings window.

  6. In the IP Addresses section of the IP Settings tab (the default), click the Add button.

  7. Type in the IP address and subnet mask for the test site in the TCP/IP Address window, and then click Add.

  8. Repeat steps 6 and 7 to add the IP address for the production site.

  9. Add the default gateway for this connection if it’s not already there.

  10. Click OK twice, and then click Close.

You can assign multiple IP addresses to a single interface. Now that the IPs are assigned, remember them, because we’ll use them again later.

Note 

If you’re asking, “What about host headers? Don’t they allow us to use multiple web sites on a server?” that’s a good question. Normally, we would want to use host headers, because they save IP addresses. Unfortunately, however, the Secure Socket Layer (SSL) protocol and host headers don’t get along very well. Since the header information is encrypted in the SSL transmission, it’s tough to decrypt that way. So our workaround is to use another IP address.




IIS 6(c) The Complete Reference
IIS 6: The Complete Reference
ISBN: 0072224959
EAN: 2147483647
Year: 2005
Pages: 193

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net