[Zope] More than one IP?
Paul Winkler
pw_lists@slinkp.com
Thu, 15 May 2003 08:13:14 -0400
On Wed, May 14, 2003 at 11:43:25PM +0200, michael stoeckel wrote:
> Hello,
>
> I need to have my Zope listening on two different network interfaces
> i.e. two different IP addresses, is this possible?
>
> I am already using the IP_ADDRESS entry in the z2.py file, but as
> far as i understood i can only specify one IP there.
look down a bit further:
-w port
The Web server (HTTP) port. This defaults to %(HTTP_PORT)s. The
standard port for HTTP services is 80. If this is a dash
(e.g. -w -), then HTTP is disabled.
The number can be preeceeded by an ip address follwed by a colon
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
to specify an address to listen on. This allows different servers
to listen on different addresses.
Multiple -w options can be provided to run multiple servers.
^^^^^^^^^^^^^^^^^^^^^
so, something like this should work (untested):
z2.py -w 111.111.111.111:8080 111.111.111.222:8080 ...
--
Paul Winkler
home: http://www.slinkp.com
"Muppet Labs, where the future is made - today!"