Apache multi-port, multisite configuration

Source: Internet
Author: User
Tags multisite

Contact Tpshop know that it must be placed in the root directory of the site, the root directory of all the files will not be considered as part of the tpshop, this will not be able to access other PHP files. Let me tell you about my configuration process, if it is wrong, please indicate.

First, modify the Apache configuration file:

1. Add: Listen 8080 #新添加的端口

2, remove the Include conf/extra/httpd-vhosts.conf in front of the #

3. Remove ServerName

4, the

DocumentRoot "E:\wamp\www"

<directory "E:\wamp\www" >
#
Options Indexes FollowSymLinks
#
AllowOverride None
Require all granted
</Directory>

#这是第一个端口的

Copy one, put it below, modify the DocumentRoot, is the second port of the site directory.

Ii. Modification of conf/extra/httpd-vhosts.conf

1, modify the <virtualhost *:80>, the results are as follows

<virtualhost *:80>
ServerAdmin [email protected]
DocumentRoot "e:/wamp/www/"
ServerName dummy-host.example.com
Serveralias www.dummy-host.example.com
Errorlog "Logs/dummy-host.example.com-error.log"
Customlog "Logs/dummy-host.example.com-access.log" common
</VirtualHost>

2. Add
<virtualhost *:8080>
ServerAdmin [email protected]
DocumentRoot "f:/www/"
ServerName dummy-host2.example.com
Errorlog "Logs/dummy-host2.example.com-error.log"
Customlog "Logs/dummy-host2.example.com-access.log" common
</VirtualHost>

Apache multi-port, multisite configuration

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.