Web: WWW Services
Iis:
Default port: 80/tcp
Zhou Zhi port: 1-1024
HTML: Hypertext Markup Language
HTTP: Hypertext Transfer Protocol
HTTPS: Secure Sockets Layer Port: 443/TCP
Lab Environment: Install role SERVER01:DC geng.com, server02:web,server02 join to Domain SERVER01. Build 3 websites on Server02, ask Sina respectively, BAIDU,UEC
Example: Deploying Sina, Baidu, UEC three Web sites (virtual hosts) in Server02
Prepare the site:
650) this.width=650; "Width=" 508 "height=" "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M02/6D/6E/wKiom1VkDbTQGvhhAABvLiRvu2w416.jpg" border= "0"/>
650) this.width=650; "width=" 513 "height=" 286 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M00/6D/6E/wKiom1VkDbTxJ3YiAAB_e1mq5SU443.jpg" border= "0"/>
650) this.width=650; "Width=" 521 "height=" 340 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M01/6D/6A/wKioL1VkD0TjFDPLAADFGbvyEAs536.jpg" border= "0"/>
Method One:
ip+ Port number + host name cannot be exactly the same
Assign an IP address to each virtual host individually
192.168.1.201 Sina
192.168.1.202 Baidu
192.168.1.203 UEC
Step: Add an IP address
Click Advanced
650) this.width=650; "Width=" 574 "height=" 372 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M01/6D/6E/wKiom1VkDbny1NCGAAHWY4MoA-w867.jpg" border= "0"/>
Add--Enter the IP address and subnet mask
650) this.width=650; "width=" 581 "height=" 588 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M02/6D/6E/wKiom1VkDbrw_0tvAAHfyITvLl0116.jpg" border= "0"/>
Server Manager--Tools--iis Manager
650) this.width=650; "width=" 581 "height=" 321 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M00/6D/6E/wKiom1VkDb7zanAwAAG8wW-AaQo870.jpg" border= "0"/>
Click Site-Right--add site
650) this.width=650; "width=" 474 "height=" 456 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M01/6D/6E/wKiom1VkDb-hsBczAAEPbWTFDlg193.jpg" border= "0"/>
(Take Baidu as an example, other than the same, choose a different IP can)
On Server01, visit the website on Server02, using IP address to access
650) this.width=650; "Width=" 458 "height=" 161 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M02/6D/6A/wKioL1VkD06TGkqDAABBhmUayc0929.jpg" border= "0"/>
Method Two: Same IP address, different port number
192.168.1.102:80 Sina
192.168.1.102:8081 Baidu
192.168.1.102:8082 UEC
Server Manager--Tools--iis Manager
650) this.width=650; "width=" 581 "height=" 321 "title=" image "style=" margin:0px;padding-top:0px;padding-right:0px; Padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; " alt= "image" Src= "http://s3.51cto.com/wyfs02/M00/6D/6A/wKioL1VkD1HQiqImAAG8wW-AaQo414.jpg" border= "0"/>
Click Site-Right--add site
650) this.width=650; "width=" 467 "height=" 446 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M01/6D/6A/wKioL1VkD1KT-C9jAAEEcvqKjA0653.jpg" border= "0"/>
(Take UEC as an example, others as above, other websites enter different port numbers can be)
650) this.width=650; "Width=" 577 "height=" 181 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M01/6D/6E/wKiom1VkDcTheFmmAABll4dNrHs432.jpg" border= "0"/>
Method three; Take advantage of host name
Www.sina.com Sina
www.baidu.com Baidu
Www.uec.com UEC
Server Manager--Tools--iis Manager
650) this.width=650; "width=" 581 "height=" 321 "title=" image "style=" margin:0px;padding-top:0px;padding-right:0px; Padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; " alt= "image" Src= "http://s3.51cto.com/wyfs02/M00/6D/6A/wKioL1VkD1bg_IqRAAG8wW-AaQo221.jpg" border= "0"/>
Click Site-Right--add site
650) this.width=650; "width=" 474 "height=" 452 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M00/6D/6A/wKioL1VkD1fC_23oAAEb9N01Os8919.jpg" border= "0"/>
Server01 on DNS new forward lookup zone sina.com new a record, resolves domain name. Server02 IP address points to server01 IP address
650) this.width=650; "Width=" 543 "height=" 379 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M01/6D/6A/wKioL1VkD1mwVeEcAAENFgKgLc8128.jpg" border= "0"/>
(Take Sina as an example, other Web site methods, such as, add host name, hostname can not be written wrong)
650) this.width=650; "Width=" 523 "height=" 203 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M01/6D/6E/wKiom1VkDcrggNvLAABasqZbX3s262.jpg" border= "0"/>
Domain Name resolution:
1. Hosts file
Storage location C:\Windows\System32\drivers\etc\hosts
2. DNS resolution
Use DNS to add a record of the site to resolve the domain name.
Virtual directory: A virtual directory of a Web site that can be stored on a network path or stored on a local disk
(Take Sina's game interface as an example)
Implementation method:
650) this.width=650; "Width=" 597 "height=" 402 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M02/6D/6E/wKiom1VkDczyhxw1AAFCEz9JlWs871.jpg" border= "0"/>
1. Click sina--Right--Add virtual directory
650) this.width=650; "Width=" 603 "height=" 354 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M01/6D/6A/wKioL1VkD2CDhxq6AAH9E63JQjk709.jpg" border= "0"/>
2. Create a virtual directory
650) this.width=650; "Width=" 457 "height=" 417 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M01/6D/6A/wKioL1VkD2CA3GsOAADg4TLRF8g632.jpg" border= "0"/>
Server01 access Server02 followed by the alias of the virtual directory
650) this.width=650; "width=" 513 "height=" 142 "title=" image "style=" Padding-top:0px;padding-right:0px;padding-left : 0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;background-image:none; "alt=" image "src = "Http://s3.51cto.com/wyfs02/M01/6D/6E/wKiom1VkDdKQ_AI4AABPVgyNk70535.jpg" border= "0"/>
Web configuration of the server