Use Port ING to allocate a port to each project in Apache to implement a port to access a website _ PHP Tutorial

Source: Internet
Author: User
Port ING is used to allocate a port to each project in Apache to enable one port to access a website. The ing function is mainly used to allow the internet to access the computer currently mapped. First, we need to map the vro ports. common open ports include 80, 21, and 3389, the ing function is mainly used to allow the internet to access the computer currently mapped. First, we need to map the vro ports. common open ports include 80, 21, and 3389, port 80 is a common port for websites, Port 21 is a common port for FTP servers, and port 3389 is a Remote Desktop Connection Port. The following describes how to map ports in detail!

Step1. open httpd. conf and find the line Listen 80.

Add

Listen 8080.
Listen 8001.
Listen 8002.
Listen 8003.

This means that each project occupies one port, just like the software in the computer, and each software occupies one port.

Step2. find


Options FollowSymLinks
AllowOverride all
Order deny, allow
Deny from all
Satisfy all
Change to the above content

Step 3 add

NameVirtualHost *: 80

DocumentRoot "d:/wamp/www"
ServerName localhost


DocumentRoot "D:/wamp/www/RED4S_V3.0/svn/repos"
ServerName 127.0.0.1: 8003

The project directory of port 8003 is D:/wamp/www/RED4S_V3.0/svn/repos.

That is to say, to add a project in the future, you only need to Listen a port and then add , DocumentRoot is the Project path...

Success ,...

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.