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