Web server configuration to a static IP address
WEB server installation
1. Open the Service Manager, click on the "role", click "Add Role"
2. Click "Next"
3, check the "WEB Server (IIS)", click "Next"
4. Click "Next"
5, click "Next" (if the page is a dynamic page, and then check the "application development", but not very safe)
6. click "install"
7, click "Close"
Create a site content
Open the "Computer" - "Local Disk C" - "inetpub File" - Create a new folder "wangzhan1" and "wangzhan2" - in two separate folders inside right-click the new "Text Document" - Open Text document, in which the input content - save as .html file
Port method (for the use of relatively few people, a small area, the public network can be a private network)
1. Click "Start" - "Administrative Tools" - open "Internet Information Services (IIS) Manager"
2, right-click the "Site" - Click on "add a site"
3, enter "site name", select "Apply pool program ", select" physical path, click "OK." (If the port is still here is 80, set the default Web site (default Web site) stops running)
4, add a second site in the same way, to note that: The port can not be here and a port on the same
5, stand-alone "wangzhan1", double-click the "Default Document", right click on the "Add"
6, entered just created for wangzhan1 html file name, and click OK
7, in the same way for wangzhan2 html file name added on
8, open the "computer" in the search field, enter "hosts" search the hosts file, use Notepad to open the first two hosts file
9, add two domain names (Note: the same IP address), save
10, visited two sites in the browser with the domain name, plus a port, without a port (provided that this port is port 80)
IP address method (best not to use the public Internet because the cost is too high for the private network)
1, on a card to add more IP, click on the "Advanced",
2. Click "Add", where they add a new address of a 192.168.18.2
3, click the "wangzhan1" the right of the "binding" pop-up " network bindings "window, select the message, click the" edit "
4, select the IP address 192.168.18.1, port 80, click" OK "
5, in the same way" wangzhan2 "a" network binding "setting, attention: port number should be changed to 80, click "OK"
6, open the hosts file, a different IP address corresponding to a different domain name, click save
7, visit the Web site domain name in the browser with
note:
1、端口号可以跟在IP地址后面,也可以跟在域名后面
2、HOSTS文件解析时不可带端口号