56gt 发表于 2018-11-27 13:43:54

多IP多端口apache虚拟主机的配置的设置

在不同的端口上运行不同的站点:  基于多端口的服务器上配置基于域名的虚拟主机。
  Listen 80
  Listen 8080
  NameVirtualHost 172.20.30.40:80
  NameVirtualHost 172.20.30.40:8080
  ServerName www.example1.com
  DocumentRoot /www/domain-80
  ServerName www.example1.com
  DocumentRoot /www/domain-8080
  ServerName www.example2.org
  DocumentRoot /www/otherdomain-80
  ServerName www.example2.org
  DocumentRoot /www/otherdomain-8080

页: [1]
查看完整版本: 多IP多端口apache虚拟主机的配置的设置