Re: [mongrel2] How mongrel2 choose the web interface to bind ?
- From:
- William Martin
- Date:
- 2011-03-19 @ 10:51
I will test.
This option is not documented.
On Sat, Mar 19, 2011 at 11:40 AM, Loic d'Anterroches <loic@ceondo.com>wrote:
> Hello,
>
> > I have 2 public address on a dedicated server. So I need to specify on
> > which address mongrel2 bind it listen port.
> > Can we do sometings like with apache : *Listen 192.170.2.1:80
> > <http://192.170.2.1:80>*
>
> bind_addr on the Server object from what I read in the code:
>
>
> main = Server(
> bind_addr="192.170.2.1",
> uuid="f400bf85-4538-4f7a-8908-67e313d515c2",
> access_log="/logs/access.log",
> error_log="/logs/error.log",
> default_host="localhost",
> chroot="./",
> name="test",
> pid_file="/run/mongrel2.pid",
> port=80,
> hosts = [
> Host(name="localhost", routes={
> '/tests/': Dir(base='tests/', index_file='index.html',
> default_ctype='text/plain')
> })
> ]
> )
>
> I have not tested it.
>
> loïc
>
> --
> Indefero - Project management and code hosting - http://www.indefero.net
> Photon - High Performance PHP Framework - http://photon-project.com
> Céondo Ltd - Web + Science = Fun - http://www.ceondo.com
>
--
---------------------------------------------------------
William MARTIN
wysman @NoSpAm@ gmail @DoT@ com