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. Because the Server is a shared server i cannot have Zope listening on all the IP addresses. so i have to specify two, any ideas? Thanks, Michael -- Mit freundlichen GrĂ¼ssen michael stoeckel mailto:michael.stoeckel@web.de
On Wed, May 14, 2003 at 11:43:25PM +0200, michael stoeckel wrote:
I need to have my Zope listening on two different network interfaces i.e. two different IP addresses, is this possible?
There may be a simpler way, but why not just use two separate ZServer instances -- one per IP address -- with a shared ZEO backend? Or have Apache listen to both IP addresses and use Rewrite or Proxy to forward traffic for both to a single ZServer. -- Fred Yankowski fred@ontosys.com tel: +1.630.879.1312 OntoSys, Inc PGP keyID: 7B449345 fax: +1.630.879.1370 www.ontosys.com 38W242 Deerpath Rd, Batavia, IL 60510-9461, USA
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?
We're using the Apache approach mentioned in another posting and it's working great. Kevin
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!"
michael stoeckel wrote at 2003-5-14 23:43 +0200:
I need to have my Zope listening on two different network interfaces i.e. two different IP addresses, is this possible?
The default behaviour is to listen on all IP addresses. Only when you specify an explicit IP (which might be given by a hostname), then Zope listens only on that IP. Dieter
participants (5)
-
Dieter Maurer -
Fred Yankowski -
Kevin Carlson -
michael stoeckel -
Paul Winkler