Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Multiple instances bound to separate IPs?

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


seanmichaelbrown at gmail

Oct 24, 2005, 6:19 PM

Post #1 of 5 (333 views)
Permalink
Multiple instances bound to separate IPs?

Is it possible to run two separate instances of Apache, both on port
80, but each bound to a different IP? So, for instance one, I'd have
this in the httpd.conf:

Listen 192.168.1.1:80

And in the other, I'd have have:

Listen 192.168.1.2:80

If I started each with a specification of configuration file, would it
work, or would I get an error about a service already bound to port
80? I'd start them like so

/usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -k start
/usr/local/apache2_php5/bin/httpd -f
/usr/local/apache2_php5/conf/httpd.conf -k start

Thanks in advance,

Sean

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


PMilanese at nypl

Oct 24, 2005, 6:23 PM

Post #2 of 5 (326 views)
Permalink
Re: Multiple instances bound to separate IPs? [In reply to]

Define your instance specific nonsense as pereach instance. I.e. Pid files.... It is how we did it in the old days prior to VHosts

-----------------
Sent from my NYPL BlackBerry Handheld.


----- Original Message -----
From: Sean Brown [seanmichaelbrown[at]gmail.com]
Sent: 10/24/2005 09:19 PM
To: users[at]httpd.apache.org
Subject: [users[at]httpd] Multiple instances bound to separate IPs?

Is it possible to run two separate instances of Apache, both on port
80, but each bound to a different IP? So, for instance one, I'd have
this in the httpd.conf:

Listen 192.168.1.1:80

And in the other, I'd have have:

Listen 192.168.1.2:80

If I started each with a specification of configuration file, would it
work, or would I get an error about a service already bound to port
80? I'd start them like so

/usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -k start
/usr/local/apache2_php5/bin/httpd -f
/usr/local/apache2_php5/conf/httpd.conf -k start

Thanks in advance,

Sean

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


seanmichaelbrown at gmail

Oct 25, 2005, 1:25 PM

Post #3 of 5 (329 views)
Permalink
Multiple instances bound to separate IPs? [In reply to]

Is it possible to run two separate instances of Apache, both on port
80, but each bound to a different IP? So, for instance one, I'd have
this in the httpd.conf:

Listen 192.168.1.1:80

And in the other, I'd have have:

Listen 192.168.1.2:80

If I started each with a specification of configuration file, would it
work, or would I get an error about a service already bound to port
80? I'd start them like so

/usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -k start
/usr/local/apache2_php5/bin/httpd -f
/usr/local/apache2_php5/conf/httpd.conf -k start

Thanks in advance,

Sean

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


Axel-Stephane.SMORGRAV at europe

Oct 26, 2005, 1:25 AM

Post #4 of 5 (320 views)
Permalink
RE: Multiple instances bound to separate IPs? [In reply to]

Of course this is possible.

A TCP connection is uniquely identified by the 5-tuple {localIP, localPort, remoteIP, remotePort, protocol}. The remoteIP and remotePort may be * in case of a passive open, i.e. a socket in LISTEN status, as is the case of a http server.

AS a matter of fact, you may not even need separate Apache instances. One instance can listen for connections on multiple addresses and ports, i.e. have multiple Listen directives.

-ascs

-----Original Message-----
From: Sean Brown [mailto:seanmichaelbrown[at]gmail.com]
Sent: Tuesday, October 25, 2005 10:25 PM
To: users[at]httpd.apache.org
Subject: [users[at]httpd] Multiple instances bound to separate IPs?

Is it possible to run two separate instances of Apache, both on port
80, but each bound to a different IP? So, for instance one, I'd have
this in the httpd.conf:

Listen 192.168.1.1:80

And in the other, I'd have have:

Listen 192.168.1.2:80

If I started each with a specification of configuration file, would it
work, or would I get an error about a service already bound to port
80? I'd start them like so

/usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -k start
/usr/local/apache2_php5/bin/httpd -f
/usr/local/apache2_php5/conf/httpd.conf -k start

Thanks in advance,

Sean

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


Axel-Stephane.SMORGRAV at europe

Oct 26, 2005, 6:23 AM

Post #5 of 5 (321 views)
Permalink
RE: Multiple instances bound to separate IPs? [In reply to]

It's no more of an issue than if the same process/instance does the same thing.

-ascs

-----Original Message-----
From: Sean Brown [mailto:seanmichaelbrown[at]gmail.com]
Sent: Wednesday, October 26, 2005 2:50 PM
To: Axel-Stéphane SMORGRAV
Subject: Re: [users[at]httpd] Multiple instances bound to separate IPs?

Axel,

Thanks for your reply. I know that you can have one instance of Apache listening on multiple IPs and on multiple ports, in fact that's the way I have things running now. But what I now need is the
opposite. I need to run two separate instances of Apache becuase
each instance will use a different major version of the PHP module.
So I'd have each one listening on a unique IP, but BOTH instances listening on port 80. Will that be an issue?

Thanks again,

Sean


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.