bluescharp 发表于 2016-3-1 11:26:10

apache里多IP怎么添加?

配置是这样的,但只有域名解析到第一个IP时才可以访问,后面的IP都不行:
[*]NameVirtualHost xxx.xxx.xxx.218:80
[*]NameVirtualHost xxx.xxx.xxx.219:80
[*]NameVirtualHost xxx.xxx.xxx.220:80
[*]
[*]
[*]DocumentRoot"D:\www\test"
[*]DirectoryIndex index.html index.php index.htm
[*]    ServerName www.test.com
[*]复制代码

顺便问下,怎么验证这些IP确实已经绑定到服务器了?我是windows的服务器。

村长 发表于 2016-3-1 12:18:56

win咋不用IIS,多省事。

醉里耍大刀 发表于 2016-3-1 12:48:49

直接改成*不可以吗

shc 发表于 2016-3-13 12:42:24

首先,把那三行NameVirtualhost删掉改成NameVirtualHost *:80
然后对每个IP要绑定网卡,否则不能访问
页: [1]
查看完整版本: apache里多IP怎么添加?