全球主机交流论坛

标题: apache里多IP怎么添加? [打印本页]

作者: bluescharp    时间: 2016-3-1 11:26
标题: apache里多IP怎么添加?
配置是这样的,但只有域名解析到第一个IP时才可以访问,后面的IP都不行:
  1. NameVirtualHost xxx.xxx.xxx.218:80
  2. NameVirtualHost xxx.xxx.xxx.219:80
  3. NameVirtualHost xxx.xxx.xxx.220:80

  4. <VirtualHost *:80>
  5. DocumentRoot  "D:\www\test"
  6. DirectoryIndex index.html index.php index.htm
  7.     ServerName www.test.com
  8. </VirtualHost>
复制代码


顺便问下,怎么验证这些IP确实已经绑定到服务器了?我是windows的服务器。
作者: 村长    时间: 2016-3-1 12:18
win咋不用IIS,多省事。
作者: 醉里耍大刀    时间: 2016-3-1 12:48
直接改成*不可以吗
作者: shc    时间: 2016-3-13 12:42
首先,把那三行NameVirtualhost删掉改成NameVirtualHost *:80
然后对每个IP要绑定网卡,否则不能访问




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4