Re: URI rewriting based on arguments

2014-11-07 Thread Edho Arief
On Sat, Nov 8, 2014 at 11:31 AM, B.R. wrote: > Hello, > > Trying to rewrite an URI based on an argument, I cannot match it otherwise > than by using rewrite. > > The problem is I fail to achieve a working recipe rewriting > example.com/watch?v=123456 > to > example.com/watch?vid=123456 > > rewrite

Re: How to follow request path within the config?

2014-11-07 Thread B.R.
I would use a return 200 directive to print variables in the location context to make sure I make nginx search for existing files. location / { return 200 "cache_path$uri\n$uri\n$uri/"; } If anything printed is not a valid file then you know why you end up with the fallback value. --- *B. R.

URI rewriting based on arguments

2014-11-07 Thread B.R.
Hello, Trying to rewrite an URI based on an argument, I cannot match it otherwise than by using rewrite. The problem is I fail to achieve a working recipe rewriting example.com/watch?v=123456 to example.com/watch?vid=123456 rewrite ^/watch\?v=(?\d+)$ $scheme://$host$uri?vid=$video? does not seem

How to follow request path within the config?

2014-11-07 Thread cachito
Hello, I'm hitting my head against a wall since a couple days ago. Last paragraph has the big question, the rest is context. I run a fairly big Wordpress blog, with a somewhat convoluted configuration rewriting legacy URLs that follow me since 2002. I use extensive caching via plugins that pregene

Re: Mail proxy with SNI

2014-11-07 Thread Sven Köhler
Hi, Am 15.05.2014 um 19:34 schrieb Maxim Dounin: > On Thu, May 15, 2014 at 11:23:19AM -0400, salsaj wrote: > >> Is there any news on this? I would be interested to know if there are plans >> to include this in nginx? > > As of now, there are no plans. I'd also like to use SNI on port 587 (submi

nginx uwsgi connection timeout

2014-11-07 Thread jpherbst
Hello, I have nginx 1.6.1 setup in front of uwsgi 2.0.7 using uwsgi_pass, which has been working very well for me except for one request. When I make the failing request uwsgi processes the request and returns the response in less than a second, but nginx just sits there with an open connection t

Re: Handling redirects among upstream servers

2014-11-07 Thread zappa
Btw, why is it you don't recomment using the error_page method? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254664,254684#msg-254684 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Handling redirects among upstream servers

2014-11-07 Thread zappa
Unfortunately I'm not able to change the behaviour of the upstream servers, these are a closed-source commercial product and come as-is. I'll look into the proxy_redirect to see if I can preserve the server to redirect to in some way, something like a GET argument or cookie. I just found out abou

Re: map_hash_bucket_size, map_hash_max_size, and memory usage

2014-11-07 Thread abstein2
Thanks Maxim -- that's actually the page that has led me to ask these questions. Since the content of that page is a bit general, I was hoping to get some more specific detail about how all the pieces are connected so that I could optimize my NGINX hash map setup as much as possible. Thanks for

Re: nginx as pop3/imap proxy

2014-11-07 Thread Maxim Dounin
Hello! On Fri, Nov 07, 2014 at 03:34:48PM +0100, Andrea wrote: > Hello, > I'm using with satisfaction nginx as pop3 and imap proxy of 4/5 mailservers. > > I have just one problem: > when one server is down, nginx can't authenticate the user and the user > mail client request the password as if i

nginx as pop3/imap proxy

2014-11-07 Thread Andrea
Hello, I'm using with satisfaction nginx as pop3 and imap proxy of 4/5 mailservers. I have just one problem: when one server is down, nginx can't authenticate the user and the user mail client request the password as if it's wrong. Without nginx, if one server is down, the user just can't connect

Re: Handling redirects among upstream servers

2014-11-07 Thread Maxim Dounin
Hello! On Fri, Nov 07, 2014 at 05:11:44AM -0500, zappa wrote: > Hello, > > I'm trying to configure Nginx to access a cluster of application servers > using a simple proxy with multiple application servers in the upstream. The > application servers use a REST api for object storage and retrieval,

Re: SPDY inflate errors in nginx 1.7.4 - 1.7.7

2014-11-07 Thread Valentin V. Bartenev
On Friday 07 November 2014 08:07:51 tunist wrote: > i was having a lot of trouble with 302 errors initially and then later on > was having slow TLS performance.. i had difficulty finding the right > combination of buffer settings to get the site to run reliably and quickly. > if i recall correctly

Re: ssl_protocols per server?

2014-11-07 Thread Maxim Dounin
Hello! On Fri, Nov 07, 2014 at 04:23:58AM -0500, saravsars wrote: > Hello > > >When using SSLv3 to connect, settings of the default server{} > >block will be used. This is because there is no SNI in SSLv3, and > >hence SSL connection is established in the context of the default > >server{} block

Re: SPDY inflate errors in nginx 1.7.4 - 1.7.7

2014-11-07 Thread tunist
i was having a lot of trouble with 302 errors initially and then later on was having slow TLS performance.. i had difficulty finding the right combination of buffer settings to get the site to run reliably and quickly. if i recall correctly, that was a field that i changed while i was in the proce

Handling redirects among upstream servers

2014-11-07 Thread zappa
Hello, I'm trying to configure Nginx to access a cluster of application servers using a simple proxy with multiple application servers in the upstream. The application servers use a REST api for object storage and retrieval, and use 301 redirects among the nodes of the cluster for load balancing.

Re: SPDY inflate errors in nginx 1.7.4 - 1.7.7

2014-11-07 Thread Valentin V. Bartenev
On Thursday 06 November 2014 19:17:18 tunist wrote: > ok, so i opened the log using glogg and have pasted a relevant sequence into > pastebin here: > http://pastebin.com/wTQs6ALb > > any tips welcome, thanks > [..] Ok, thanks, I see the problem. Why have you changed the "large_client_header_buf

Re: SPDY inflate errors in nginx 1.7.4 - 1.7.7

2014-11-07 Thread tunist
enabling debug on the site in question generated vast amounts of log data and i think either some type of limit was reached or a bug caused the logging to fail. i was unable to open the logviewer for the site's error log after the first few minutes and eventually the interface crashed while attempt

Re: ssl_protocols per server?

2014-11-07 Thread saravsars
Hello >When using SSLv3 to connect, settings of the default server{} >block will be used. This is because there is no SNI in SSLv3, and >hence SSL connection is established in the context of the default >server{} block Even with TLSv1.1 and TLSv1.2, default server "ssl_protocols" is only in effec

Re: Autoindex - Filter by filename?

2014-11-07 Thread Francis Daly
On Thu, Nov 06, 2014 at 06:54:31PM -0500, mevans336 wrote: Hi there, > Is there a way to have autoindex only display certain files? Using the stock nginx autoindex module, no. Documentation is at http://nginx.org/en/docs/http/ngx_http_autoindex_module.html You could compile in a separate modul