Request path not passed to proxy when $scheme is used in proxy_pass URI

2013-03-23 Thread Ben Hoskings
Hi all, I've found a strange behaviour with proxy_pass. I've reduced a simple vhost that reproduces it: server { listen 127.0.0.1:8000; location / { proxy_pass $scheme://127.0.0.1:9000/; } } A listener on localhost:9000 receives a request, but for '/' instead of the correct path. For ex

Re: nginx/freebsd kern.maxbcache

2013-03-23 Thread Sergey Kandaurov
On Mar 22, 2013, at 6:32 PM, Richard Kearsley wrote: > Hi > > I'm trying to tune 'kern.maxbcache' with hope of increasing 'vfs.maxbufspace' > so that more files can be stored in buffer memory on freebsd 9.1 > It's suggested to tune this value here > http://serverfault.com/questions/64356/freeb

Re: max virtualhosts

2013-03-23 Thread Ruslan Ermilov
On Sat, Mar 23, 2013 at 02:50:08PM +0400, Igor Sysoev wrote: > On Mar 23, 2013, at 14:14 , Larry wrote: > > > I was wondering, for the sake of curiosity, how many server blocks (virtual > > hosts) nginx can afford ? > > > > To the extreme : will 1000 server blocks will decrease nginx performances

Re: max virtualhosts

2013-03-23 Thread Igor Sysoev
On Mar 23, 2013, at 14:14 , Larry wrote: > Hi ! > > I was wondering, for the sake of curiosity, how many server blocks (virtual > hosts) nginx can afford ? > > To the extreme : will 1000 server blocks will decrease nginx performances ? No. Unless server_names are regular expressions. -- Igor

max virtualhosts

2013-03-23 Thread Larry
Hi ! I was wondering, for the sake of curiosity, how many server blocks (virtual hosts) nginx can afford ? To the extreme : will 1000 server blocks will decrease nginx performances ? Cheers, Larry Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237702,237702#msg-237702 _