proxying of POST requests based on $args not working

2014-05-08 Thread M. G.
Hi, The proxying of GET requests on $args i.e. feedid=293634 goes to server2 properly. But proxying of POST requests on $args i.e. feedid=293634 always goes to server1 instead of server2. Following is configuration... 1. /etc/nginx/nginx.conf contains user nginx; worker_processes 4; error_lo

fastcgi cache path keys zone=name:size

2014-05-08 Thread beatnut
Hi all I've simple question but unfortunately i cant' find any information. How many entries can handle 1MB of memory configured by size in keys_zone=name:size ? Thanks in advance for your reply Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249973,249973#msg-249973

Re: Struggling with configuration

2014-05-08 Thread Alan Chandler
On 08/05/14 20:16, Alan Chandler wrote: Hi I am porting some stuff that I had working under Apache to now run under Nginx and I have a particular case that I don't know how to deal with. I have a physical directory structure like this dev/ dev/myapp/ dev/myapp/web/ in this directory is an

Re: nginx hotlinking protection issue with wildcards !!

2014-05-08 Thread Maxim Dounin
Hello! On Fri, May 09, 2014 at 10:36:40AM +0500, shahzaib shahzaib wrote: > Hello Maxim, > >I am not using server_names, it was just a google stuff i > put in order to test if hotlinking works or not. One of my teammates > informed me that the link is embedded on the website and

Re: nginx hotlinking protection issue with wildcards !!

2014-05-08 Thread shahzaib shahzaib
Please guide me if hot-linking protection should prevent that stream to be playable which is embedded ? On Fri, May 9, 2014 at 10:36 AM, shahzaib shahzaib wrote: > Hello Maxim, > >I am not using server_names, it was just a google stuff i > put in order to test if hotlinking works

Re: nginx hotlinking protection issue with wildcards !!

2014-05-08 Thread shahzaib shahzaib
Hello Maxim, I am not using server_names, it was just a google stuff i put in order to test if hotlinking works or not. One of my teammates informed me that the link is embedded on the website and there's no hot-linking protection issue regarding it. @Maxim, i think embedded videos

Re: How to limit POST request per ip ?

2014-05-08 Thread Maxim Dounin
Hello! On Tue, May 06, 2014 at 03:16:09PM -0700, Jeroen Ooms wrote: > On Sat, Apr 5, 2014 at 3:07 PM, Maxim Dounin wrote: > > > > we need something like > > > > limit_req_zone $limit zone=one:10m rate=1r/s; > > > > where the $limit variables is empty for non-POST requests (as we > > don't wa

Re: Proxy buffering

2014-05-08 Thread Maxim Dounin
Hello! On Thu, May 08, 2014 at 04:45:18AM -0400, JSurf wrote: > > I'll plan to work on this and related problems at the start of > > next year. > > > > Hi, is this still somewhere on the priority list ? Yes, it's still in the list. -- Maxim Dounin http://nginx.org/ _

Re: Nginx receiving bytes from Amazon ELB (Performance Issue)

2014-05-08 Thread Maxim Dounin
Hello! On Thu, May 08, 2014 at 02:47:47PM +1200, Nicholas Sherlock wrote: > On 8 May 2014 06:05, rodrigo.aiello wrote: > > > Nginx is receiving the bytes and then > > delivering. I wonder if anyone has gone through this problem and found a > > better solution. As already suggested, the origina

Re: nginx hotlinking protection issue with wildcards !!

2014-05-08 Thread Maxim Dounin
Hello! On Fri, May 09, 2014 at 03:14:35AM +0500, shahzaib shahzaib wrote: > hello, > > I am using hotlinking protection for mp4 files but found that whenever > i use wildcard in hot-linking, it doesn't work properly and videos even > play on the domain where it doesn't suppose to be buffer.

Re: Age header support

2014-05-08 Thread Maxim Dounin
Hello! On Thu, May 08, 2014 at 06:12:03PM -0400, jakubp wrote: > Hi > > Is Age header support on a roadmap for the forseeable future? I am mainly > looking at the upstream side (and I saw there was a discussion in the > developer zone a few months back) but it would be great to have full-blown >

Re: Trying to Understand Upstream Keepalive

2014-05-08 Thread Maxim Dounin
Hello! On Thu, May 08, 2014 at 03:12:44AM -0400, abstein2 wrote: > I'm trying to better wrap my head around the keepalive functionality in the > upstream module as when enabling keepalive, I'm seeing little to no > performance benefits using the FOSS version of nginx. > > My upstream block is: >

Re: configuring for video seeking? - using projekktor media player

2014-05-08 Thread Maxim Dounin
Hello! On Thu, May 08, 2014 at 03:12:38PM -0400, ura wrote: > i am creating a plugin for the elgg open source social networking framework, > that adds the projekktor media player (http://www.projekktor.com/) to elgg. > i am so far unable to get projekktor to seek video/audio files on the > webser

Re: proxy_buffer_size values are honored even if proxy_buffering is off

2014-05-08 Thread Maxim Dounin
Hello! On Mon, May 05, 2014 at 03:04:22AM +0800, Rv Rv wrote: > At the > http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffer_size, > the documentation implies that > the configuration proxy_buffer_size , proxy_buffers and proxy_busy_buffers > will be honored only when proxy_

Re: $memcached_key doesn't fetch unicode url

2014-05-08 Thread Maxim Dounin
Hello! On Sun, May 04, 2014 at 06:42:39PM +0300, kirpit wrote: > Hi, > > I'm doing some sort of downstream cache that I save every entire page into > memcached from the application with urls such as: > > www.example.com/file/path/?query=1 > > then I'm fetching them from nginx if available with

Re: Problem with ECC certificates

2014-05-08 Thread Maxim Dounin
Hello! On Wed, May 07, 2014 at 08:30:37PM +0200, Markus Weippert wrote: > On 04.05.2014 16:52, Markus Weippert wrote: > > > I'm having some strange issues using nginx 1.6 with ECC certs. > > Handshakes fail for clients using TLSv1.2 and SNI but only if the > > requested server block is not the d

Re: Cache Hit Latency for large responses.

2014-05-08 Thread Maxim Dounin
Hello! On Thu, May 01, 2014 at 06:27:19PM -0400, lovekmla wrote: > Context: > I am currently using nginx to serve as a Response Cache Proxy in order to > shim-out (isolate) network latency while running some performance related > tests. > > The Perf Tests are comprised of 50 repetitions of the

nginx hotlinking protection issue with wildcards !!

2014-05-08 Thread shahzaib shahzaib
hello, I am using hotlinking protection for mp4 files but found that whenever i use wildcard in hot-linking, it doesn't work properly and videos even play on the domain where it doesn't suppose to be buffer. My mp4 config : location ~ \.(mp4)$ { mp4; root /va

Age header support

2014-05-08 Thread jakubp
Hi Is Age header support on a roadmap for the forseeable future? I am mainly looking at the upstream side (and I saw there was a discussion in the developer zone a few months back) but it would be great to have full-blown support. Regards, Kuba Posted at Nginx Forum: http://forum.nginx.org/read

Re: ngx_slab_alloc() failed: no memory in cache keys zone "zone-xyz"

2014-05-08 Thread jakubp
> It does so - if an allocation of a cache node fails, this will > trigger a forced expiration of a cache node, and then tries to > allocate a node again. This is more an emergency mechanism > though (and not guaranteed to work, as another allocation may > fail, too), hence alerts are logged i

Multiple reverse proxies that read from /static/ ?

2014-05-08 Thread kafonek
Hello, Sorry for the beginner question, but I can't seem to find an example anywhere that shows how to handle nginx hosting more than one reverse proxy (such as a Django app and an Ipython notebook) where both systems have static files in different directories. The relevant parts of my nginx conf

Re: Wordpress Multi-Site Converting Apache to Nginx

2014-05-08 Thread Alan Chandler
On 01/05/14 08:02, nrahl wrote: This entire configuration was 100% functional using Apache2. I just saw this thread for the first time, and I am wondering if its the same problem I hit when I moved my apache2 configuration over to nginx. It turned out to be nothing to do with nginx, but a pr

Re: nginx rewrites $request_method on error

2014-05-08 Thread Yichun Zhang (agentzh)
Hello! On Wed, May 7, 2014 at 8:59 PM, kay wrote: >> 1. It is not recommended to use the rewrite_by_lua directive directly > > You can do the same with access_by_lua > Please do not cut my original sentence and just pick the first half. The full sentence is "it is not recommended to use the rewri

Struggling with configuration

2014-05-08 Thread Alan Chandler
Hi I am porting some stuff that I had working under Apache to now run under Nginx and I have a particular case that I don't know how to deal with. I have a physical directory structure like this dev/ dev/myapp/ dev/myapp/web/ in this directory is an index.php file with the following early in

configuring for video seeking? - using projekktor media player

2014-05-08 Thread ura
i am creating a plugin for the elgg open source social networking framework, that adds the projekktor media player (http://www.projekktor.com/) to elgg. i am so far unable to get projekktor to seek video/audio files on the webserver (tested using nginx 1.5.13 + 1.7). i have asked on the projekktor

Re: CGI support - Sorry to bring it up

2014-05-08 Thread Roberto De Ioris
> Hi All, >We've built a new EC2 server based on Virtualmin + Nginx. I've seen > Nginx recommended a lot over the years so thought if we are moving to > the cloud, and want things to be optimal, then it's time to give it a > go. Before our setup has been Virtualmin + Apache (with suexec and fc

CGI support - Sorry to bring it up

2014-05-08 Thread Lyle
Hi All, We've built a new EC2 server based on Virtualmin + Nginx. I've seen Nginx recommended a lot over the years so thought if we are moving to the cloud, and want things to be optimal, then it's time to give it a go. Before our setup has been Virtualmin + Apache (with suexec and fcgid).

Re: autoindex hiding dot folders

2014-05-08 Thread shinsterneck
Thanks for your feedback itpp2012! >> Very useful patch but the naming is not correct, . and .. or not your typical hidden type, autoindex_show_dot_folders would make more sense. You are right, the wording "hidden" is not really good here because "files" starting with a 'dot' would only be hidde

High performance rsyslog setup

2014-05-08 Thread Aleksandar Lazic
Dear list members. on the rsyslog list was this description page posted. http://www.rsyslog.com/performance-tuning-elasticsearch/ Mail from Radu Gheorghe http://lists.adiscon.net/pipermail/rsyslog/2014-April/037219.html Maybe some plus customer are interested in this setup. Best regards Alek

Re: Proxy buffering

2014-05-08 Thread JSurf
> I'll plan to work on this and related problems at the start of > next year. > Hi, is this still somewhere on the priority list ? The upload_buffer patch attached to this thread does not apply to 1.6.x without changes It would be a great addition to this cool server. When dealing with big file

Re: Nginx 1.6 under load gives a ton of error 403

2014-05-08 Thread dfumagalli
For future reference: empyrical observation seems to show that 1.6 is a bit heavier than 1.4.7. I have raised some php-fpm.conf daemon settings and timeouts and the situation improved: emergency_restart_threshold = 10 emergency_restart_interval = 1m process_control_timeout = 10s Posted at Nginx F

Re: autoindex hiding dot folders

2014-05-08 Thread itpp2012
Very useful patch but the naming is not correct, . and .. or not your typical hidden type, autoindex_show_dot_folders would make more sense. And "if (ngx_de_name(&dir)[0] == '.') {" will exclude files which start with a dot, if (ngx_de_name(&dir) == '.') or (ngx_de_name(&dir) == '..') {, would b

Trying to Understand Upstream Keepalive

2014-05-08 Thread abstein2
I'm trying to better wrap my head around the keepalive functionality in the upstream module as when enabling keepalive, I'm seeing little to no performance benefits using the FOSS version of nginx. My upstream block is: upstream upstream_test_1 { server 1.1.1.1 max_fails=0; keepalive 50; } With