全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 2660|回复: 3
打印 上一主题 下一主题

apache里多IP怎么添加?

[复制链接]
跳转到指定楼层
1#
发表于 2016-3-1 11:26:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
配置是这样的,但只有域名解析到第一个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的服务器。
2#
发表于 2016-3-1 12:18:56 | 只看该作者
win咋不用IIS,多省事。
3#
发表于 2016-3-1 12:48:49 来自手机 | 只看该作者
直接改成*不可以吗
4#
发表于 2016-3-13 12:42:24 | 只看该作者
首先,把那三行NameVirtualhost删掉改成NameVirtualHost *:80
然后对每个IP要绑定网卡,否则不能访问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-1 09:40 , Processed in 0.111180 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表