Transfering url arguments to different location

2014-04-01 Thread Cristian Rusu
Hello I have a setup on nginx to count downloads. *location / {.post_action /afterdownload;* Here I have a value in $arg_key *location /afterdownload {* I need $arg_key here Any way to send it to /afterdownload section? Thank you ---

Re: 404 error with rewriting rule

2014-04-01 Thread Francis Daly
On Tue, Apr 01, 2014 at 02:23:27PM -0400, skyice wrote: Hi there, > With this rule : > > rewrite ^/([^/])(/.*) $2?locale=$1&$query_string last; > > I get a 404 error when I try go on http://example.org/en/test.php instead of > http://example.org/test.php?locale=en Does this rewrite regex matc

Cache permissions problem

2014-04-01 Thread hpatoio
Hello. I've a custom build of nginx (1.4.6) with ngx_cache_purge module (2.1) In the config file I've a cache zone declared like this: proxy_cache_path /tmp/nginx_cache keys_zone=MYCACHE:10m; I don't have specified any "user" (http://wiki.nginx.org/CoreModule#user) in my config. When I run ng

404 error with rewriting rule

2014-04-01 Thread skyice
Hello, With this rule : rewrite ^/([^/])(/.*) $2?locale=$1&$query_string last; I get a 404 error when I try go on http://example.org/en/test.php instead of http://example.org/test.php?locale=en Anyone have any idea to solve the problem ? Thanks. Posted at Nginx Forum: http://forum.nginx.org

Proxying large downloads from s3

2014-04-01 Thread Sudara Williams
Hi guys! We are proxying files from s3 through our app and had a couple questions on ideal config. When I arrived on the scene, the following config was in place: location /download/ { internal; proxy_pass https://s3.amazonaws.com; proxy_buffering off; proxy_buffers 2 4m; pro

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

2014-04-01 Thread Maxim Dounin
Hello! On Mon, Mar 31, 2014 at 08:13:20PM -0400, jakubp wrote: > Hi > > I am struggling with the very same issue at the moment... > > If I read the right the code correctly all that nginx cares about is cache > size, keys zone size is not checked at all (except when more space needs to > be all

Binary upgrade from package

2014-04-01 Thread B.R.
Hello, I am wondering what steps the upgrade through official packages of an existing nginx process follow. I am ujsing official Debian packages. More precisely, when the new binary is installed through the package system, what signal(s) is(are) sent to migrate rfrom the old to the new binary? I

Re: nginx doesn't seem to register configuration changes

2014-04-01 Thread Maxim Dounin
Hello! On Tue, Apr 01, 2014 at 01:11:47PM +0200, Nicholas Wieland wrote: > On April 1, 2014 at 1:01:46 PM, Maxim Dounin (mdou...@mdounin.ru) wrote: > > > Any suggestion? > > > Take a look at global error log as defined in your nginx.conf, likely > > it has an explanation. > > > Not really, t

Re: nginx doesn't seem to register configuration changes

2014-04-01 Thread Nicholas Wieland
On April 1, 2014 at 1:01:46 PM, Maxim Dounin (mdou...@mdounin.ru) wrote: > Any suggestion? Take a look at global error log as defined in your nginx.conf, likely it has an explanation. Not really, the error I posted is actually the only error I get. My best guess is that for some reasons nginx

Re: [nginx] Vary header is repeated twice in response

2014-04-01 Thread Maxim Dounin
Hello! On Tue, Apr 01, 2014 at 02:54:56PM +0400, Yury Kirpichev wrote: > Hi, > > I've got an issue that "Vary" header is repeated twice in response when > "gzip_vary on" is specified in config file; > > My configuration is the following: > Two instances of nginx are running on different hosts

Re: nginx doesn't seem to register configuration changes

2014-04-01 Thread Maxim Dounin
Hello! On Tue, Apr 01, 2014 at 12:34:21PM +0200, Nicholas Wieland wrote: > Hi *, I’m using nginx as reverse proxy for some puma backends > via unix socket. > The problem I’m having right now is that even after several > reloads nginx doesn’t seem to use the changes I did to the > configuration

nginx doesn't seem to register configuration changes

2014-04-01 Thread Nicholas Wieland
Hi *, I’m using nginx as reverse proxy for some puma backends via unix socket. The problem I’m having right now is that even after several reloads nginx doesn’t seem to use the changes I did to the configuration. I honestly have no idea what to try as this is definitely very weird. The problem ap

Tunnel TLS similar to Websockets

2014-04-01 Thread pablo platt
Hi, Is it possible to tunnel TLS on one host without terminating it like Websockets are tunneled? http://nginx.org/en/docs/http/websocket.html location / { proxy_pass http://backend; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgra