Vhost problem (only last vhost works)

Igor Sysoev is at rambler-co.ru
Thu Dec 11 12:19:38 MSK 2008


On Thu, Dec 11, 2008 at 10:08:08AM +0100, Redd Vinylene wrote:

> On Thu, Dec 11, 2008 at 9:12 AM, Igor Sysoev <is at rambler-co.ru> wrote:
> >
> > Are you sure that mongrels on 127.0.0.1:5000/5001/5002 are able to
> > recoginze different hosts ? Can you see all sites without nginx ?
> 
> About mongrels recognizing different hosts, I'm not really sure. My
> .yml files seem just like the ones in the tutorials though.
> 
> You mean if I can see them like this?
> 
> # sockstat | grep 500
> www      ruby18     34817 3  tcp4   127.0.0.1:5008        *:*
> www      ruby18     34814 3  tcp4   127.0.0.1:5007        *:*
> www      ruby18     34811 3  tcp4   127.0.0.1:5006        *:*
> www      ruby18     34807 3  tcp4   127.0.0.1:5005        *:*
> www      ruby18     34804 3  tcp4   127.0.0.1:5004        *:*
> www      ruby18     34801 3  tcp4   127.0.0.1:5003        *:*
> www      ruby18     34797 3  tcp4   127.0.0.1:5002        *:*
> www      ruby18     34794 3  tcp4   127.0.0.1:5001        *:*
> www      ruby18     34791 3  tcp4   127.0.0.1:5000        *:*

Could you say mongrel to listen on host IP (not 127.0.0.1)
and request site1/etc directly from mongrel ?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list