现在已有可用ip,端口为80,增设一个8080的端口的虚拟主机
1.增加监听端口:
Listen 80
Listen 8080
2.在原有ServerName 下面增加 虚拟主机端口:
ServerName 201.230.222.214:80
NameVirtualHost 201.230.222.214:8080
3.增加虚拟主机目录
<VirtualHost 201.230.222.214:8080>
ServerName 201.230.222.214:8080
DocumentRoot "/www/domain-8080"
</VirtualHost>
4. 虚拟主机目录属性设置
<Directory "/www/domain-8080">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>