阿帕奇配置如下、
<VirtualHost *:80>
DocumentRoot "D:\fecmall\fecshop"
ServerName 127.0.0.1
ServerAlias fecshoptest.com
<Directory "D:\fecmall\fecshop">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\fecmall\fecshop\appadmin\web"
ServerName 127.0.0.2
ServerAlias appadmin.fecshoptest.com
<Directory "D:\fecmall\fecshop\appadmin\web">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\fecmall\fecshop\appfront\web"
ServerName 127.0.0.3
ServerAlias appfront.fecshoptest.com
<Directory "D:\fecmall\fecshop\appfront\web">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\fecmall\fecshop\apphtml5\web"
ServerName 127.0.0.4
ServerAlias apphtml5.fecshoptest.com
<Directory "D:\fecmall\fecshop\apphtml5\web">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\fecmall\fecshop\appimage\common"
ServerName 127.0.0.5
ServerAlias img.fecshoptest.com
<Directory "D:\fecmall\fecshop\appimage\common">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\fecmall\fecshop\appserver\web"
ServerName 127.0.0.6
ServerAlias appserver.fecshoptest.com
<Directory "D:\fecmall\fecshop\appserver\web">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\fecmall\fecshop\appapi\web"
ServerName 127.0.0.7
ServerAlias appapi.fecshoptest.com
<Directory "D:\fecmall\fecshop\appapi\web">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
数据库
程序配置数据文件
host文件我也改了。求解