简体   繁体   English

如何在同一端口号上配置两个不同的 Apache 实例,并在单个服务器上使用不同的 IP

[英]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.

相关问题 如何配置两个不同的Web应用程序以在同一主机/端口上使用Apache? - How to configure two different webapps to work with Apache on the same host/port? 如何配置Apache来监听其他端口? - How to configure Apache to listen some different port? Apache:同一服务器上的两个域具有不同的端口 - Apache: two domains on the same server with different ports 如何在 Centos Apache 的不同端口上运行同一域中的两个网站 - How do I run two website on same domain with different port on Centos Apache 如何在同一服务器的不同端口上运行不同的Web应用程序? - How to run different web apps on different port in same server? 如何在apache中为不同集群的相同位置配置weblogic插件? - How to configure weblogic plugin in apache for the same Location for different clusters? 如何在不同服务器上为apache配置nginx反向代理 - How to configure nginx reverse proxy for apache with servername on different server 同一apache服务器下的两个不同的joomla网站 - two different joomla sites under same apache server 将Apache配置为将http路由到其他服务器上的https - Configure Apache to route http to https on a different server 如何设置apache代理同一台服务器上的两个不同的tomcat? - How can I setup apache to proxy for two different tomcats on the same server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM