zoukankan      html  css  js  c++  java
  • Configure a Host Header for a Web Site (IIS 7)

    Host headers (also known as domain names or host names) let you assign more than one site to a single IP address on a Web server.

    Note 
      Host headers work for HTTP 1.1-compliant browsers (Internet Explorer 3.x and later, or Netscape Navigator 3.x and later).

    To host more than one Web site on a Web server, you can assign a unique IP address to each Web site, designate a non-standard TCP port number for a Web site, or use host headers. Of the three methods, it is more common to use host headers than to assign unique IP addresses to Web sites or to use non-standard TCP port numbers.

    Note 
    After you configure a host header or multiple host headers for an IP address, you must register the host headers with the appropriate name resolution system. If your computer is on an intranet, register the host header name or names with the intranet's name resolution system. If your computer is on the Internet, register the host header name or names with the Domain Name System (DNS), which is administered by InterNic.

    Prerequisites
    For information about the levels at which you can perform this procedure, and the modules, handlers, and permissions that are required to perform this procedure, see Sites Feature Requirements (IIS 7) .

    Exceptions to feature requirements

    None

    To configure a host header for a site
    You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts.

    User Interface
    To use the UI
    Open IIS Manager. For information about opening IIS Manager, see Open IIS Manager (IIS 7) .

    In the Connections pane, expand the Sites node in the tree, and then select the site for which you want to configure a host header.

    In the Actions pane, click Bindings .

    In the Site Bindings dialog box, select the binding for which you want to add a host header and then click Edit or click Add to add a new binding with a host header.

    In the Host name box, type a host header for the site, such as www.contoso.com .

    Click OK .

    To add an additional host header, create a new binding with the same IP address and port, and the new host header. Repeat for each host header that you want to use this IP address and port.

  • 相关阅读:
    A/B test模块使用以及配置
    Linux下的tar压缩解压缩命令详解
    php mysql转义特殊字符的函数(转)
    cas server + cas client 单点登录 原理介绍
    php二维码的生产以及下载
    shiro 获取已经登录的用户
    Sql 根据多条件查询重复的数据 MySQL删除重复数据
    js base64 转PDF并下载,js baser64转图片并下载
    当同时安装Python2和Python3后,如何兼容并切换使用详解(比如pip使用)
    我的博客初始“话”
  • 原文地址:https://www.cnblogs.com/henryhappier/p/1656167.html
Copyright © 2011-2022 走看看