RE: [users@httpd] Multiple instances bound to separate IPs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Tuesday, October 25, 2005 10:25 PM
To: users@xxxxxxxxxxxxxxxx
Subject: [users@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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux