修改apache目录下的etc-host文件
<VirtualHost *:8080> #域名 ServerName www.123456.com #该域名对应的目录地址 DocumentRoot "/var/disk/www/www.test.com/" #该节点是配置权限、默认首页啊等等东东 <Directory "/var/disk/www/www.test.com"> Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.php AllowOverride All Require all granted </Directory> </VirtualHost>