Apache binds different ports of the server to different sites

Source: Internet
Author: User

I set up four folders under D:/0oes:



Then, I want to bind the different ports of the server with them.
Collegeoes corresponds to 80 port schooloes corresponds to 90 port collegeres corresponds to 8080 port schoolres corresponding 9090 port
bind non-80 ports first
Open httped.conf



Added at the end of the httped.conf:
Listen 90<virtualhost *:90>   ServerAdmin [email protected]   DocumentRoot D:\0oes\schooloes   ServerName *:90   <directory "D:\0oes\schooloes" >      Options all      allowoverride the      Order allow, Deny allow from all   </directory></virtualhost>listen 8080<virtualhost *:8080>   ServerAdmin [email protected]   documentroot D:\0oes\collegeres   ServerName *:8080   <directory "D:\ 0oes\collegeres ">      Options all      allowoverride all      Order allow,deny      allow from all   </ Directory></virtualhost>listen 9090<virtualhost *:9090>   ServerAdmin [email protected]   DocumentRoot D:\0oes\schooloes   ServerName *:9090   <directory "D:\0oes\schooloes" >      Options All      allowoverride      All Order Allow,deny allow from all   </Directory></VirtualHost>



then modify the binding path for port 80
Modify the DocumentRoot C:\wamp\www to D:\0oes\collegeoes
Will <directory "C:\wamp\www "> Modified to<directory "D:\0oes\collegeoes ">
now, you can access different websites with the colon port number behind localhost or 127.0.0.1.



Apache binds different ports of the server to different sites

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.