Re: Fwd: nginx performance on Amazon EC2

2013-02-21 Thread mex
now you **only** need to find the bootleneck :) maybe its better to run ab from a machine in the same network instead of running on the same machine, esp. with one core. Rakan Alhneiti Wrote: --- > Hello, > > Thank you all for your suppo

Re: Is it possible that nginx will not buffer the client body?

2013-02-21 Thread Weibin Yao
Use the patch I attached in this mail thread instead, don't use the pull request patch which is for tengine. Thanks. 2013/2/22 Pasi Kärkkäinen > On Fri, Jan 18, 2013 at 10:38:21AM +0200, Pasi Kärkkäinen wrote: > > On Thu, Jan 17, 2013 at 11:15:58AM +0800, ?? wrote: > > >Yes. It should w

Re: 1.3.12 occasional segfaults

2013-02-21 Thread digitalpoint
Yeah sorry... I didn't see 1.3.13 came out the day prior. Either way, glad whatever it was seems to have been fixed before I asked... Upgrading to 1.3.13 and the occasional segfaults stopped. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236409,236454#msg-236454 _

Re: Fwd: nginx performance on Amazon EC2

2013-02-21 Thread Rakan Alhneiti
Hello, Thank you all for your support. *Mex: * *1) is the setup of your vmware similar to you ec2 - instance? i talk esp. about RAM/CPU-power here.* Yes, i've setup the vmware machine to be 1.7 G in ram and 1 core just like the small ec2 instance. *2) do you have a monitoring on your instances,

Re: Proxying websocket (to e.g. tomcat)

2013-02-21 Thread Nikolai Zhubr
21.02.2013 20:03, Valentin V. Bartenev wrote: [...] Apparently such configuration implies that different kinds of connections (standard and websocket) can not be mixed in one "location" section? (As far as I understood it, magic headers do not get through directly, but essentially get reintroduce

Re: Is it possible that nginx will not buffer the client body?

2013-02-21 Thread Pasi Kärkkäinen
On Fri, Jan 18, 2013 at 10:38:21AM +0200, Pasi Kärkkäinen wrote: > On Thu, Jan 17, 2013 at 11:15:58AM +0800, ?? wrote: > >Yes. It should work for any request method. > > > > Great, thanks, I'll let you know how it works for me. Probably in two weeks > or so. > Hi, Adding the tengine p

Re: nginx + php5-fpm on Debian

2013-02-21 Thread Mark Alan
On Thu, 21 Feb 2013 14:07:45 +0100, GASPARD Kévin wrote: > > nginx -V 2>&1|sed 's,--,\n--,g' > nginx version: nginx/1.2.1 Ok, this seems pretty standard for Debian. > > find /etc/nginx/ -name *.conf|xargs -r grep -v '^\s*\(#\|$\)' > /etc/nginx/conf.d/koshie-island.koshie.fr.conf:server { > /etc/

Re: How to remove the "IF" in this fcgi config

2013-02-21 Thread Ed W
On 21/02/2013 17:54, Igor Sysoev wrote: location ~ ^(?.+\.php)(?/|$) { try_files $script_name =404; include fastcgi2.conf; fastcgi_param PATH_INFO $path_info; fastcgi_pass 127.0

Re: How to remove the "IF" in this fcgi config

2013-02-21 Thread Igor Sysoev
On Feb 21, 2013, at 21:48 , Ed W wrote: > Hi, I'm trying to setup a php app using fpm (owncloud). > > I am trying to match urls which can all over the filesystem and of the form: > something.php/some/path?params > > So far I have something like this: > > >location / { >

How to remove the "IF" in this fcgi config

2013-02-21 Thread Ed W
Hi, I'm trying to setup a php app using fpm (owncloud). I am trying to match urls which can all over the filesystem and of the form: something.php/some/path?params So far I have something like this: location / { try_files $uri $uri/ index.php;

Re: Proxying websocket (to e.g. tomcat)

2013-02-21 Thread Valentin V. Bartenev
On Thursday 21 February 2013 19:55:45 Nikolai Zhubr wrote: > 21.02.2013 18:30, Valentin V. Bartenev wrote: > [...] > > > Yes, it's possible with 1.3.13. And yes, you need some additional > > configuration. > > > > Example: > > location /examples/websocket { > > > > proxy_pass

Invalidation After Updates or Deletions

2013-02-21 Thread Артем Гуртовой
Hello everyone, Is there any way to configure nginx proxy cache invalidation on unsafe requests¹ as it is supposed² in RFC? http://www.ietf.org/rfc/rfc2616.txt ¹section 9.1.1 ²section 13.10 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.or

Re: Proxying websocket (to e.g. tomcat)

2013-02-21 Thread Nikolai Zhubr
21.02.2013 18:30, Valentin V. Bartenev wrote: [...] Yes, it's possible with 1.3.13. And yes, you need some additional configuration. Example: location /examples/websocket { proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http

Re: Proxying websocket (to e.g. tomcat)

2013-02-21 Thread Valentin V. Bartenev
On Thursday 21 February 2013 18:35:14 Nikolai Zhubr wrote: > Hello all! > > I've installed the latest version 1.3.13 (supposedly supporing > websocket) and was trying to push websocket connections through nginx to > tomcat while leaving all other (static) content to nginx. To do this, > I've added

Proxying websocket (to e.g. tomcat)

2013-02-21 Thread Nikolai Zhubr
Hello all! I've installed the latest version 1.3.13 (supposedly supporing websocket) and was trying to push websocket connections through nginx to tomcat while leaving all other (static) content to nginx. To do this, I've added the following "location" for tomcat: location /examples/

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread Francis Daly
On Thu, Feb 21, 2013 at 10:26:22AM +0100, GASPARD Kévin wrote: Hi there, > >So: what is the hostname in the url that you try to get, when you see > >the 502 error? > > Trying to install a Wordpress, used a info.php page here: > http://blog.koshie.fr/wp-admin/info.php Ok - so the one server{}

Re: How to check the existence of a http-only secure cookie

2013-02-21 Thread Valentin V. Bartenev
On Thursday 21 February 2013 17:27:58 mrtn wrote: > i see. since you mentioned it, is there any way to check for http-only and > secure properties of a cookie using nginx? There are no such properties in the Cookie request header. wbr, Valentin V. Bartenev -- http://nginx.com/support.html http

Re: How to check the existence of a http-only secure cookie

2013-02-21 Thread mrtn
i see. since you mentioned it, is there any way to check for http-only and secure properties of a cookie using nginx? In other words, combined with the original question above, i want to check if a given a cookie is present and it is http-only and secure, otherwise, reject the request with a 404.

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread GASPARD Kévin
Le Thu, 21 Feb 2013 13:46:35 +0100, Mark Alan a écrit: On Thu, 21 Feb 2013 12:07:41 +0100, GASPARD Kévin wrote: To be honest I don' know. When I've setup this configuration (more than 1 year ago I think) It seems that you are trying to force a non Debian directory structure into a Debian o

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread Mark Alan
On Thu, 21 Feb 2013 12:07:41 +0100, GASPARD Kévin wrote: > To be honest I don' know. When I've setup this configuration (more > than 1 year ago I think) It seems that you are trying to force a non Debian directory structure into a Debian one. Show us the result of: nginx -V 2>&1|sed 's,--,\n--

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread GASPARD Kévin
Le Thu, 21 Feb 2013 11:26:57 +0100, Wolfsrudel a écrit: Can you please do a `grep 'fastcgi_pass ' /etc/nginx/*/*` and post the output? Maybe there are other configuration files with a fefault 'fastcgi_pass' which overwrites your vhost. With a sudo grep -R 'fastcgi_pass ' /etc/nginx/*/* I ha

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread GASPARD Kévin
Le Thu, 21 Feb 2013 11:17:21 +0100, Wolfsrudel a écrit: Dump question, but why did you put the vhost-files into "conf.d"? Normally they are stored in "sites-available" and symlinked in "sites-enabled". nginx (as apache) uses this directory to read all information about the vhosts. Are the

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread Wolfsrudel
Can you please do a `grep 'fastcgi_pass ' /etc/nginx/*/*` and post the output? Maybe there are other configuration files with a fefault 'fastcgi_pass' which overwrites your vhost. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236396,236415#msg-236415 __

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread Wolfsrudel
Dump question, but why did you put the vhost-files into "conf.d"? Normally they are stored in "sites-available" and symlinked in "sites-enabled". nginx (as apache) uses this directory to read all information about the vhosts. Are there any templates in "sites-enabled"? How do they look like? Poste

Re: 1.3.12 occasional segfaults

2013-02-21 Thread Valentin V. Bartenev
On Thursday 21 February 2013 11:39:04 digitalpoint wrote: > It's a fairly vanilla install of nginx (with the exception of the SPDY > patch). We are seeing roughly 1 segfault every hour or so on each web > server... I didn't generate a debugging log, because I wasn't sure how big > something like t

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread GASPARD Kévin
Hi there, >Looking at your config file, plus every file include'd in it, can you >see which one server{} block is used for this request? (You'll need >to look at all of the "listen" directives first, and then all of the >"server_name" directives in the server{}s with the "listen" that best >ma

Re: Fwd: nginx performance on Amazon EC2

2013-02-21 Thread Jan-Philip Gehrcke
Do you run the benchmark program on the same virtual machine as the web stack?? For yielding conclusive results, you certainly don't want to make ab, nginx, and all other entities involved compete for the same CPU. If yes, try running ab from a different machine in the same network (make sure