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的服务器。 win咋不用IIS,多省事。 直接改成*不可以吗 首先,把那三行NameVirtualhost删掉改成NameVirtualHost *:80
然后对每个IP要绑定网卡,否则不能访问
页:
[1]