Port ing is used to allocate a port to each project in Apache to enable one port to access a website.

Source: Internet
Author: User

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

<Directory/>
Options FollowSymLinks
AllowOverride all
Order deny, allow
Deny from all
Satisfy all
</Directory> modify to the preceding content.

Step 3 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 project directory of port 8003 is D:/wamp/www/RED4S_V3.0/svn/repos.

In other words, if you want to add a project in the future, you only need to Listen a port and then add <VirtualHost *: port number> at the end. DocumentRoot is the project path...

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.