Re: proxy_redirect can't be def'd in an include file; ok in main config?

2014-01-21 Thread Maxim Dounin
Hello! On Tue, Jan 21, 2014 at 11:30:29AM -0800, r...@sent.com wrote: > > > On Tue, Jan 21, 2014, at 11:10 AM, Maxim Dounin wrote: > ... > > And it's certainly a wrong list to write such questions. Thank > > you for cooperation. > ... > > > Hello! > > > > On Tue, Jan 21, 2014 at 10:55:58AM

Re: Rewriting GET request parameters while configured as a reverse proxy

2014-01-21 Thread B.R.
It seems your syntax is obsolete. Have a look at http://nginx.org/en/docs/http/converting_rewrite_rules.html where it is explicitly written. It is also explicitely wriiten on the wiki page you visited that the resource is obsolete and that you should use http://nginx.org/en/docs/http/ngx_http_rewri

Re: Bounty for #416

2014-01-21 Thread Brian Davis
On Tue, Jan 21, 2014 at 4:26 AM, Andrey Utkin < andrey.krieger.ut...@gmail.com> wrote: > 2014/1/14 Brian Davis : > > Like the ticket creator says in the description, always serving cached > > versions of pages would be extremely cool, so I wanted to let people > know I > > just offered a $500 boun

Re: proxy_redirect can't be def'd in an include file; ok in main config?

2014-01-21 Thread rand
On Tue, Jan 21, 2014, at 11:10 AM, Maxim Dounin wrote: ... > And it's certainly a wrong list to write such questions. Thank > you for cooperation. ... > Hello! > > On Tue, Jan 21, 2014 at 10:55:58AM -0800, r...@sent.com wrote: > > > i've nginx 1.5.8 > > > > If I check a config containing >

Rewriting GET request parameters while configured as a reverse proxy

2014-01-21 Thread Rv Rv
Hello Is there a way to make nginx rewrite the GET request parameters while configured as a reverse proxy. e.g. if nginx receives a request GET / foo.html?abc=123 , can nginx rewrite it to GET /foo.html?abc=456 (nginx admin specifies 123 to be changed to 456) and then do a proxy pass to the orig

Re: Nested location block for merging config returns 404?

2014-01-21 Thread Valentin V. Bartenev
On Tuesday 21 January 2014 08:29:18 WheresWardy wrote: > I want a location to proxy to another service, and need to add an extra > header for certain file types, but when trying to merge the configuration > with a nested location instead of duplicating nginx instead returns a 404. > > For example,

Re: Nested location block for merging config returns 404?

2014-01-21 Thread Jonathan Matthews
On 21 January 2014 13:59, WheresWardy wrote: >> Your line >> >> location \.(txt|css) { >> >> looks like a regex, but you're not telling nginx it /is/ a regex. I >> wouldn't expect anything to work until you fix that. > > Apologies, that was a typo during simplification of my config. I do indeed

Re: Nested location block for merging config returns 404?

2014-01-21 Thread WheresWardy
> Your line > > location \.(txt|css) { > > looks like a regex, but you're not telling nginx it /is/ a regex. I > wouldn't expect anything to work until you fix that. Apologies, that was a typo during simplification of my config. I do indeed have a ~ in my nested location block, and it's defini

Re: Nested location block for merging config returns 404?

2014-01-21 Thread Jonathan Matthews
On 21 January 2014 13:40, WheresWardy wrote: > I don't think it's a regex issue, because if I add an additional proxy_pass > inside the nested location block, I then get a valid request. Additionally, > any headers set inside the outer location block don't appear, but then if I > duplicate them in

Re: Nested location block for merging config returns 404?

2014-01-21 Thread WheresWardy
I don't think it's a regex issue, because if I add an additional proxy_pass inside the nested location block, I then get a valid request. Additionally, any headers set inside the outer location block don't appear, but then if I duplicate them inside the nested location block, they then appear (just

Re: Nested location block for merging config returns 404?

2014-01-21 Thread Jonathan Matthews
On 21 January 2014 13:29, WheresWardy wrote: > I just get a 404 returned for the previously workings URLs: > > location ~ /(dir1/)?dir2/ { > location \.(txt|css) { > add_header X-My-Static value2; > } > add_header X-My-Header value1; > proxy_pass http://myproxy; > } > > Can location bl

Nested location block for merging config returns 404?

2014-01-21 Thread WheresWardy
I want a location to proxy to another service, and need to add an extra header for certain file types, but when trying to merge the configuration with a nested location instead of duplicating nginx instead returns a 404. For example, this configuration works: location ~ /(dir1/)?dir2/ { add_hea

Re: imap proxy limited to about 210 connections

2014-01-21 Thread Maxim Dounin
Hello! On Mon, Jan 20, 2014 at 05:31:30PM -0500, bidwell wrote: > I have nginx proxying imap and pop between 3 different backend servers, but > it seems to be limited to about 210 concurrent connections. Requests beyond > this get a connection timed out. I tried adding more worker processes but

Re: Help required in Setting up FTP Load Balancer in NGINX-

2014-01-21 Thread Jonathan Matthews
On 21 January 2014 06:56, tilde...@gmail.com wrote: > I required help to configure FTP Load balancer in NGINX. > > Can you all please help me with the necessary steps or any link which > explains the same. > > Note: My incoming FTP request will come in FTP protocol only. We cannot > configure FTP

Re: Bounty for #416

2014-01-21 Thread Andrey Utkin
2014/1/14 Brian Davis : > Like the ticket creator says in the description, always serving cached > versions of pages would be extremely cool, so I wanted to let people know I > just offered a $500 bounty for http://trac.nginx.org/nginx/ticket/416 at > Bountysource. > > https://www.bountysource.com/

Re: How to define dynamic proxy_cache_path directory.

2014-01-21 Thread Makailol Charls
Hello Maxim, Thanks to reply on this . If we have single cache path (directory) for multiple sites, is there some way to clear(purge) all cached pages for particular site? Regards, Makailol On Mon, Jan 20, 2014 at 6:26 PM, Maxim Dounin wrote: > Hello! > > On Mon, Jan 20, 2014 at 02:14:26PM +