[Mongrel] Finding out on which port mongrel is running

Maximilian Schoefmann schoefma at cip.ifi.lmu.de
Thu Aug 3 15:00:59 EDT 2006


Hi *,

What's the best way to find out on which port mongrel is running from
within Rails?
I have a cluster of mongrels behind a balancer (Pen) behind a webserver
(Apache).

In Rails,
  request.port return 80
and
  request.env['SERVER_PORT'] returns 3000 (the port of Pen)

Any ideas?

Cheers,
Max



More information about the Mongrel-users mailing list