[Zope] Listening on specific interfaces
Martijn Pieters
mj@digicool.com
Thu, 2 Mar 2000 13:03:40 +0100
From: "Michel Pelletier" <michel@digicool.com>
> You need to hack the z2.py file. Go down near the bottom (look for the
> string '# HTTP Server') and you will see that the HTTP server is fired
> up on the IP_ADDRESS interface. This variable is defined on line 252
> and the default is an empty string '' which means, 'all interfaces'.
>
> You can hack the code here to do anything you want, define a bunch of
> interface variables, etc...
>
> Yes, this needs to be done better, but short of comming up with a conf
> file like apache and dealing with all that, it's probably no so
> realistic. z2.py is currently config'ed with command line options,
> which gets out of control after a while.
Or, as someone else pointed out, you could use the -a parameter to z2.py.
Just run z2.py --usage for all command line options.
Martijn Pieters
| Software Engineer mailto:mj@digicool.com
| Digital Creations http://www.digicool.com/
| Creators of Zope http://www.zope.org/
| The Open Source Web Application Server
---------------------------------------------