- Based on name-based
- Based on IP
- Based on port
- Combine
Third, based on Ip+port
This is the creation of www5, accessed through ip:8080 www5.example.com
Catalogue/var/www
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/8B/90/wKioL1hRTK_ Gvretaaaud2qj3pe500.png "" 233 "height=" 603 "/>
Vim/etc/httpd/conf/httpd.conf Adding content
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/8B/90/wKioL1hRTK_S56_ Paaajidfiasy417.png "" 246 "height="/>
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/8B/93/ Wkiom1hrtlds-sstaaawxnmzo5s430.png "" 626 "height=" 208 "/>
Httpd-s Check Configuration
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/8B/93/ Wkiom1hrtlhieq3haacodv8u2e0980.png "" 815 "height=" 510 "/>
Apachectl Restart Restart Service
Try to visit a website
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/8B/93/ Wkiom1hrtlgahagtaaasnbhmezq324.png "" 524 "height="/>
To this, the Ip+port virtual host configuration has been completed.
Problem:
1) How to control the access traffic of each virtual host, how to understand the performance status of each host?
Apache Configuration Virtual host 3--based on Ip+port combination