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

2014-04-02 Thread Makailol Charls
Hi, I have been facing similar issue of header duplication. Is there any solution for this? Thanks, Makailol On Tue, Apr 1, 2014 at 4:34 PM, Maxim Dounin wrote: > Hello! > > On Tue, Apr 01, 2014 at 02:54:56PM +0400, Yury Kirpichev wrote: > > > Hi, > > > > I've got an issue that "Vary" header

Re: how to use keepalive with Nginx revers proxy?

2014-04-02 Thread Makailol Charls
Hi Maxim, Thanks for reply. Number of IPs are not fixed so it is not possible to define upstream and map block I think. I am trying to implement completely dynamic configuration using lua module. Is it possible to use variable in upstream block like this? upstream backend { server $IP;

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

2014-04-02 Thread jakubp
> What currently can be used for such a use case is "inactive=" > parameter of the proxy_cache_path directive (see > http://nginx.org/r/proxy_cache_path). It ensures that items not > recently requested are removed from the cache, including ones > created with proxy_cache_min_uses. Have you tr

More Descriptive 502 Errors

2014-04-02 Thread abstein2
Every so often I see a handful of errors in my error log, such as: connect() failed (113: No route to host) upstream timed out (110: Connection timed out) upstream sent too big header while reading response header from upstream etc. in each case, when I log the $status variable in nginx, each ju

Re: Transforming nginx for Windows

2014-04-02 Thread tonyschwartz
Not really, you'd need another copy of windows depending on the type of vm, extra licensing, etc. I have been doing this kind of thing very happily for many many years. I like doing it this way and have had very good experiences doing it. Most any kind of app will happily run multiple instances.

Re: Radius and TACACS+ based authentication

2014-04-02 Thread Hari Miriyala
Hi, Thanks for reply, I have looked into further and found that basic PAM module support is available (below is the link). How could we extend this to support RADIUS and TACACS+, any thoughts and ideas please? http://web.iti.upv.es/~sto/nginx/ Regards, Hari On Fri, Mar 28, 2014 at 10:22 AM,

Re: Transforming nginx for Windows

2014-04-02 Thread Scott Ribe
Wouldn't you want to use VMs for that? On Apr 2, 2014, at 12:05 PM, tonyschwartz wrote: > I have money for one powerful test server. I run two instances for > availability reasons. > > For example, let's say I have an integration test environment and an > acceptance test environment... > > On

Re: Transforming nginx for Windows

2014-04-02 Thread tonyschwartz
I have money for one powerful test server. I run two instances for availability reasons. For example, let's say I have an integration test environment and an acceptance test environment... On the integration test environment, I want to be able to tinker with the configs and bring the app up and

Re: Transfering url arguments to different location

2014-04-02 Thread B.R.
Thanks Jonathan! However, not much details on why it is a 'hack' not to be trusted since unreliable. I do not rely on the Wiki anymore, and since Maxim specifically says it should be removed... I hope it will be, to prevent unreliable configurations to be shared and propagated based on unofficial

Re: Transforming nginx for Windows

2014-04-02 Thread itpp2012
tonyschwartz Wrote: --- > This is definitely working better now. Thanks for letting me know > about the newer version. I didn't notice the newer version because > the order the versions were appearing was backwards, but that appear > to be corre

Re: Transforming nginx for Windows

2014-04-02 Thread tonyschwartz
This is definitely working better now. Thanks for letting me know about the newer version. I didn't notice the newer version because the order the versions were appearing was backwards, but that appear to be corrected now. Anyway, now that I've upgraded, I am running into a different issue. I

Re: Keepalive not working with upstream tcp server

2014-04-02 Thread Jayadev C
I am setting u->keepalive = 1 in my module too, but let me double check that though. Meanwhile , is the keepalive done by http_upstream_keepalive_module ? Is it included by default or do I need to compile explicitly include that module.  I don't see the code going through that module in my req

Re: Proxying large downloads from s3

2014-04-02 Thread Maxim Dounin
Hello! On Wed, Apr 02, 2014 at 05:05:36PM +0200, Sudara Williams wrote: [...] > With regards to early terminated / truncated large files — is this > something you or anyone else has seen before? > > I'll see if I can get some better logging going on and report back. > Might be tough to correl

Re: Transfering url arguments to different location

2014-04-02 Thread Jonathan Matthews
On 2 April 2014 14:13, B.R. wrote: > If someone had details about reasons not to use post_action (either from the > referenced IIRC discussion or from other sources), I would be very > interested in them. http://forum.nginx.org/read.php?2,213627,213722#msg-213722 and the note on the wiki next to

Re: Proxying large downloads from s3

2014-04-02 Thread Sudara Williams
Thanks Maxim! That is what I suspected with regards to proxy_buffering, as it is in line with your other responses on the list. With regards to early terminated / truncated large files — is this something you or anyone else has seen before? I'll see if I can get some better logging going on an

Re: Keepalive not working with upstream tcp server

2014-04-02 Thread Maxim Dounin
Hello! On Wed, Apr 02, 2014 at 01:01:07AM -0700, Jayadev C wrote: > I am trying to use nginx to proxy my requests to a custom tcp > backend server that I have. I am following the same model as the > default memcached module with in the nginx code base (1.5.10) , > the relevant config file atta

Re: Proxying large downloads from s3

2014-04-02 Thread Maxim Dounin
Hello! On Tue, Apr 01, 2014 at 07:59:45PM +0200, Sudara Williams wrote: [...] > interrupted. But we would appreciate any advice about proxying large > files from s3. Should proxy_buffering be on or off? There is no need to switch off proxy_buffering unless you are doing streaming and/or long p

Re: how to use keepalive with Nginx revers proxy?

2014-04-02 Thread Maxim Dounin
Hello! On Wed, Apr 02, 2014 at 06:55:42PM +0530, Makailol Charls wrote: > Hi, > > Can some one provide me an example to set keep alive connection between > Nginx(reverse proxy) and backend server? > > I can not use upstream module as my backend IP is dynamic based on > variable. So I can not us

Re: problem with echo_before when proxying a server which sends gzipped content

2014-04-02 Thread Maxim Dounin
Hello! On Wed, Apr 02, 2014 at 02:48:33PM +0200, Carsten Germer wrote: > Hi everyone, > currently I'm, trying to configure NGINX as a proxy for JSON > from the iTunes API. > It's for a small game, iTunes is slow sometimes and the data for > the game is mostly the same for a good length of time,

Re: How to send proxy cache status to backend server?

2014-04-02 Thread Makailol Charls
Hi, In my configuration I have caching layer of Nginx and a separate proxy layer which works as reverse proxy to original upstream backend. As discussed previously we can pass cache status from caching layer to upstream but is there anything else which I can get from cache file (when cache is exp

how to use keepalive with Nginx revers proxy?

2014-04-02 Thread Makailol Charls
Hi, Can some one provide me an example to set keep alive connection between Nginx(reverse proxy) and backend server? I can not use upstream module as my backend IP is dynamic based on variable. So I can not use keepalive directive of upstream. I have used below directive in location block. proxy

Re: What is better location regex or map regex?

2014-04-02 Thread B.R.
I would use: - rewrite directives only at server level, no need for location here - a single regex with OR logic to match both the advancedsearch and the profile URI since the rewriting grammar is the same - a single regex for both 'index.php' rewritings, since the grammar of category+page is the s

Re: Transfering url arguments to different location

2014-04-02 Thread B.R.
On Wed, Apr 2, 2014 at 11:11 AM, Jonathan Matthews wrote: > As an aside, IIRC people @nginx have stated publicly that post_action is a > hack, and that its behaviour should not be relied on. I'm without Internets > right now so can't find you the quote, but it was sufficient to put me off > using

problem with echo_before when proxying a server which sends gzipped content

2014-04-02 Thread Carsten Germer
Hi everyone, currently I'm, trying to configure NGINX as a proxy for JSON from the iTunes API. It's for a small game, iTunes is slow sometimes and the data for the game is mostly the same for a good length of time, anyway. The JSON from iTunes is to be padded with the original requests callback

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

2014-04-02 Thread Maxim Dounin
Hello! On Wed, Apr 02, 2014 at 05:30:55AM -0400, jakubp wrote: > Hi Maxim > > Let me explain the use case. > I am using cache module to serve very large library. Some files are very > popular but a ot of them are not popular at all though. To deal with this > long tail I use proxy_cache_min_uses

Re: nginx upload module compile the problem.

2014-04-02 Thread Batuhan Göksu
hi friends, nginx version 1.4.7 upload module version 2.0.12 --- I want to compile along with nginx upload module. I'm getting the following error during compilation How can I solve this problem /Users/batuhangoksu/Desktop/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1028:13: warning

nginx upload module compile the problem.

2014-04-02 Thread Batuhan Göksu
hi friends, nginx version 1.4.7 upload module version 2.0.12 -- Sincerely, Batuhan Göksu ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

What is better location regex or map regex?

2014-04-02 Thread Aleksandar Lazic
Hi. I try to transform the pligg htaccess rules to nginx. https://github.com/Pligg/pligg-cms/blob/master/htaccess.default There is one from 2010 http://www.edwardawebb.com/web-development/running-pligg-nginx-rewrite-rules this transformation have some optimization potential, imho ;-). I woul

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

2014-04-02 Thread jakubp
Hi Maxim Let me explain the use case. I am using cache module to serve very large library. Some files are very popular but a ot of them are not popular at all though. To deal with this long tail I use proxy_cache_min_uses to cache only after it was requested several times. So what I think happens

Re: 404 error with rewriting rule

2014-04-02 Thread Jonathan Matthews
On 1 Apr 2014 19:23, "skyice" wrote: > > Hello, > > With this rule : > > rewrite ^/([^/])(/.*) $2?locale=$1&$query_string last; Your first capture is looking for exactly 1 character. Do you really mean that? J ___ nginx mailing list nginx@nginx.org htt

Re: Transfering url arguments to different location

2014-04-02 Thread Jonathan Matthews
On 2 Apr 2014 07:31, "Cristian Rusu" wrote: > > 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 se

Keepalive not working with upstream tcp server

2014-04-02 Thread Jayadev C
I am trying to use nginx to proxy my requests to a custom tcp backend server that I have. I am following the same model as the default memcached module with in the nginx code base (1.5.10) , the relevant config file attached.  Tried with most of the keepalive options but I still see new connec