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