About the Apache configuration map port

Source: Internet
Author: User

Step1.
Open httpd.conf Find Listen 80 this line
Add at a later
Listen 8080
Listen 8001
Listen 8002
Listen 8003
This means that each project occupies a port, just like the software in the computer, each software occupies a port

Step2. Find
<directory/>
Options FollowSymLinks
AllowOverride All
Order Deny,allow
Deny from all
Satisfy All
</Directory>

Modify to the above content

Step3. At the end of the add
Namevirtualhost *:80
<virtualhost *:80>
DocumentRoot "D:/wamp/www"
ServerName localhost
</VirtualHost>
<virtualhost *:8003>
DocumentRoot "D:/wamp/www/red4s_v3.0/svn/repos"
ServerName 127.0.0.1:8003
</VirtualHost>
The above means: 8003 The project directory for this port is D:/wamp/www/red4s_v3.0/svn/repos
In other words, which project to add in the future as long as the first listen a port, and then add a <virtualhost *: Port number >,documentroot is the path of the project

About the Apache configuration map port

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.