[英]How to configure two different Apache instances on the same port number with different IPs on single server
Is it possible to configure two different Apache instances on the same port number with different IPs on a single server?是否可以在单个服务器上使用不同的 IP 在同一端口号上配置两个不同的 Apache 实例? Both ports are configured for the same server.两个端口都是为同一台服务器配置的。 httpd.conf of First Apache- First Apache的httpd.conf-
<VirtualHost 10.100.30.50:80>
DocumentRoot "/www/example-80/pqr"
ServerName www.example.org
</VirtualHost>
Below configuration is not allowing to start the second Apache instance.下面的配置不允许启动第二个 Apache 实例。 httpd2.conf of second Apache-第二个Apache的httpd2.conf-
<VirtualHost 10.100.30.40:80>
DocumentRoot "/www/example-80/xyz"
ServerName www.example.org
</VirtualHost>
Second instance is coming up with different IP apart from port 80. Like- 10.100.30.40:8081除了端口 80 之外,第二个实例提供了不同的 IP。例如- 10.100.30.40:8081
getting this error while trying to start second apache尝试启动第二个 apache 时出现此错误
It looks like you have not configured the second IP in any interface on the server.看起来您尚未在服务器上的任何接口中配置第二个 IP。 Please configure the IP as virtual interface on the server and try to start apache.请将 IP 配置为服务器上的虚拟接口并尝试启动 apache。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.