Re: Why use haproxy now ?

2013-03-30 Thread Igor Sysoev
On Mar 30, 2013, at 14:17 , Reinis Rozitis wrote: >> BTW, do you use Varnish persistent cache? > > No, just a huge mmaped file .. > Since the instances get restarted very rarely (most have now over a year of > uptime) the result is basicaly the same without the persistant storage bad > side ef

Re: where is the pid file

2013-03-30 Thread Patrick Lists
On 03/30/2013 08:39 PM, JCR wrote: Hi on Linux Centos 5 wiht nginx 1.2.7, I am struggling to find the pid file in my nginx.conf file I have pid/usr/local/nginx/logs/nginx.pid; but I dont see any nginx.pid in there. I tried to set that path at compile time but to no avail. Is there a co

where is the pid file

2013-03-30 Thread JCR
Hi on Linux Centos 5 wiht nginx 1.2.7, I am struggling to find the pid file in my nginx.conf file I have pid/usr/local/nginx/logs/nginx.pid; but I dont see any nginx.pid in there. I tried to set that path at compile time but to no avail. Is there a command to know where that file is? Wy

default domain name

2013-03-30 Thread esujit
I am trying out the proxy (without cache module) functionality in nginx. Here is the problem I am encountering On the client machine the default domain name is company.com when user types in http://department in the browser, the DNS resolves to department.company.com When this http request gets in

Re: php-fpm take up all cpu resources

2013-03-30 Thread Reinis Rozitis
So I'm thinking this problem is caused by php-fpm. This is not exactly php list and not really related to nginx, but you should start by at least telling your php version, there have been a bunch of bugs fixed regarding fpm and cpu hogging (also in php core itself) in past. It can always be

Re: RE: Mail proxy with SNI

2013-03-30 Thread lblankers
On March 30, 2013 09:58AM Lukas Tribus wrote: > Thats may be a dump question: but why do you use different > host names in the first place? Is it a real business > requirement to have a host name per domain? No such thing as dumb questions, only people who can't answer them :-) I have multiple

php-fpm take up all cpu resources

2013-03-30 Thread Meteor
Hi All, In these days, php-fpm took up all cpu resources several times a day.. Each php-fpm may take up 25% cpu resource which should be less than 5% in normal status. Below is the php-fpm.log. [30-Mar-2013 22:18:47] NOTICE: about to trace 29600 [30-Mar-2013 22:18:47] NOTICE: finished trace of 2

Nginx maintenance page/redirect with ip exception

2013-03-30 Thread cavamondo
Coming fra Apache/htaccess, im trying to get my head around the Nginx paradigme. Im trying to achieve a temporary redirect to a www.mysite.com/maintenance.html page, for all visitors to www.mysite.com except visitors coming from IP:xx.xx.xx.xx.wich should have fuul access to the site. I know how t

RE: Mail proxy with SNI

2013-03-30 Thread Lukas Tribus
Thats may be a dump question: but why do you use different host names in the first place? Is it a real business requirement to have a host name per domain? Simply using a single host name for all domains would solve all you issues here. If this really is a business requirement for you (maybe the s

Re: Mail proxy with SNI

2013-03-30 Thread Jonathan Matthews
A cheaper, non-commercially-viable option (which might be acceptable as you indicate it's not a professional project) would just be to put different domains' certs on different ports. A slight one-time setup annoyance to the users, of course, but they shouldn't care if you're doing it for free. May

Re: fastcgi-cache and expires

2013-03-30 Thread Reinis Rozitis
Before I change it, is there any huge reason "fastcgi_ignore_headers Cache-Control Expires;" and "expires epoch;" should stay in my fastcgi-params file? nginx honours the headers the backend sends. Often dynamic applications (like php when using sessions etc) send headers which "deny" any kin

fastcgi-cache and expires

2013-03-30 Thread Ian M. Evans
Just curious... In a lot of examples I've seen on the net for setting up fastcgi-cache the directives fastcgi_ignore_headers Cache-Control Expires; expires epoch; are included. Is there any major reason for that? For my own setup I want the fastcgi caching to reduce load on the server, but I'd a

Re: Why use haproxy now ?

2013-03-30 Thread Reinis Rozitis
Did you try nginx cache since version 1.1.0? Yes, but only for fastcgi cache therefore the file count isn't too big to make an impact. I'll try the static cache again with the current version and see how it works out now. BTW, do you use Varnish persistent cache? No, just a huge mmaped f

Re: Mail proxy with SNI

2013-03-30 Thread lblankers
On March 29, 2013 08:14PM Phil Pennock wrote: > On 2013-03-30 at 02:24 +0400, Valentin V. Bartenev wrote: > > On Saturday 30 March 2013 01:30:21 lblankers wrote: > > > I would like to use nginx 1.2.1 with TLS SNI support to proxy SMTP > > > submission for several different domains over SSL. I would