-
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.
-
In the system tray, usually the default system disk C drive, open: C: \ Windows \ System32 \ drivers \ etc this path, find the file "hosts"
-
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.
-
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"
-
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
-
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.
-
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.
-
IIS local configuration domain
Guess you like
Origin www.cnblogs.com/liucaixia/p/11942280.html
Ranking