Apache Configuration Virtual host 3--based on Ip+port combination

Source: Internet
Author: User

    • 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.