IIS local configuration domain

  1. The first step, we want a good local domain name you want to configure, if you use a Chrome browser, you can configure the domain name can not end .dev, otherwise the time of the visit will be blocked directly. We www.test.com example.

  2.  

    In the system tray, usually the default system disk C drive, open: C: \ Windows \ System32 \ drivers \ etc this path, find the file "hosts"

    How to configure IIS to the local domain name
  3.  

    Open the file hosts file, adding a carriage return at the bottom: 127.0.0.1 www.test.com this record, note that there is a space between ip and domain name. If you want to disable domain name that article, on top adding "#", equivalent to comment out. If you want to add multiple domain names can be added directly enter.

    How to configure IIS to the local domain name
  4.  

    Open iis, find your own site deployment, you can enter cmd "inetmgr" command, quickly opened iis. After finding the site, right website to find the "Edit Binding"

    How to configure IIS to the local domain name
  5.  

    The system will pop up a new action box, here is a list of all the information the site domain name or port binding, on the right side of the list we find the "Add" button and click

    How to configure IIS to the local domain name
  6.  

    In the pop-up "Add Site Binding" setting interface, we entered in the input box below the name of the host www.test.com, we default use port 80, and then click the OK button.

    How to configure IIS to the local domain name
    1.  

      At this time, we bind the new domain name will appear in the list of "binding site" of, here, on our website completes the configuration of the local domain name.

      How to configure IIS to the local domain name
       
       
      Precautions:
        1, host file for each domain in a row
        2, Port ftp: 21, http domain: 80

Guess you like

Origin www.cnblogs.com/liucaixia/p/11942280.html