我无法让 Apache 侦听特定的 IP 地址。这是一个本地网络服务器,不是公共的。
我在 CentOS 5.11 上使用 Apache 2.2。
默认配置 httpd.conf 效果很好,但只侦听服务器的静态 IP 地址10.0.0.101:80
。
我附加Listen 10.0.0.103:80
到 httpd.conf 的末尾,但收到错误:
Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 10.0.0.103:80
Run Code Online (Sandbox Code Playgroud)
我正在学习有关制作高可用性集群的教程,该教程可以在https://www.howtoforge.com/high_availability_heartbeat_centos上看到。如果我只能让 Apache 从那个地址开始,我会很高兴。
我正在使用这个旧版本的 CentOS,因为我正在尝试使用旧硬件而不是废弃它。
我在 Google、CentOS 站点和 Apache 站点上连续查找了 4 个小时,但没有找到任何解决方案。