Can I resuse persistent connection established in server configuration in different location configurations ?

2014-05-19 Thread Adarsh Pugalia
Hi, I am new to nginx. I would like to know if its possible to reuse persistent connections in different location modules. Suppose I establish a connection through and object through my server configuration module. Can i use this object in my different location modules? If yes, then how? Thanks. _

Re: Dropped https client connection doesn't drop backend proxy_pass connection

2014-05-19 Thread newnovice
1. Where can i get a full list of these disabled headers: "By default, nginx does not pass the header fields “Date”, “Server”, “X-Pad”, and “X-Accel-...” from the response of a proxied server to a client. The proxy_hide_header directive sets additional fields that will not be passed. If, on the co

Re: Dropped https client connection doesn't drop backend proxy_pass connection

2014-05-19 Thread Valentin V. Bartenev
On Monday 19 May 2014 17:32:07 newnovice wrote: > I tried with: "proxy_pass_header Connection;" -- which > should do this according to documentation: "Permits passing otherwise > disabled header fields from a proxied server to a client." > (from upstream_server to client) No, it

Re: Pretty printer for the Nginx config?

2014-05-19 Thread Dustin Oprea
On Mon, May 19, 2014 at 7:37 PM, Lord Nynex wrote: > I do something similar to this in some backend config management code I > wrote awhile back. I've created a gist with some code snippets to help > understand how I'm reading/writing the config. > > https://gist.github.com/lordnynex/1a568e54b5d1

Re: Pretty printer for the Nginx config?

2014-05-19 Thread Lord Nynex
I do something similar to this in some backend config management code I wrote awhile back. I've created a gist with some code snippets to help understand how I'm reading/writing the config. https://gist.github.com/lordnynex/1a568e54b5d1af38f549 Obviously this is not what you're looking for, and p

Re: Pretty printer for the Nginx config?

2014-05-19 Thread Dustin Oprea
On Mon, May 19, 2014 at 7:12 PM, Lyle wrote: > It's kind of along the right lines, but I need to keep comments, etc. > Just have consistent whitespace more than anything else. > > You might write your own and make it available. Dustin > > Lyle > > > On 19/05/2014 19:59, Kurt Cancemi wrote:

Re: Pretty printer for the Nginx config?

2014-05-19 Thread Lyle
It's kind of along the right lines, but I need to keep comments, etc. Just have consistent whitespace more than anything else. Lyle On 19/05/2014 19:59, Kurt Cancemi wrote: Hello, Would this suit your needs? And the ngi

Re: Dropped https client connection doesn't drop backend proxy_pass connection

2014-05-19 Thread newnovice
I tried with: "proxy_pass_header Connection;" -- which should do this according to documentation: "Permits passing otherwise disabled header fields from a proxied server to a client." (from upstream_server to client) But this did not pass thru the Connection header coming from t

Re: Quick question about using kill -USR1 to recreate access.log

2014-05-19 Thread Lord Nynex
The name of the file is really sort of irrelevant. The file descriptor will still point at $ACCESS_LOG_DROPBOX/$LOG_FILENAME. Any log lines between MV and KILL *should* still be written there. Why not use logrotate? Why not use nginx reload? Why not use HUP? On Mon, May 19, 2014 at 12:36 PM, Fra

Re: Quick question about using kill -USR1 to recreate access.log

2014-05-19 Thread Francis Daly
On Mon, May 19, 2014 at 03:06:06PM -0400, samingrassia wrote: Hi there, > mv $NGINX_ACCESS_LOG $ACCESS_LOG_DROPBOX/$LOG_FILENAME > kill -USR1 `cat $NGINX_PID` > > My questions is during time between the mv and the kill, is there any log > writes that are being discarded or are they being stacked

Quick question about using kill -USR1 to recreate access.log

2014-05-19 Thread samingrassia
Thanks to everyone in advance! I have a cron that runs the following: mv $NGINX_ACCESS_LOG $ACCESS_LOG_DROPBOX/$LOG_FILENAME kill -USR1 `cat $NGINX_PID` My questions is during time between the mv and the kill, is there any log writes that are being discarded or are they being stacked in memory a

Re: Pretty printer for the Nginx config?

2014-05-19 Thread Kurt Cancemi
Hello, Would thissuit your needs? And the nginx configuration files are written in there own language/syntax. On Mon, May 19, 2014 at 2:49 PM, Lyle wrote: > Is there a pretty printer for this file? It doesn't seem to be in

Pretty printer for the Nginx config?

2014-05-19 Thread Lyle
Is there a pretty printer for this file? It doesn't seem to be in any particular language. I tried a JS beautifier but that broke things. Lyle ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx rewrites $request_method on error

2014-05-19 Thread Yichun Zhang (agentzh)
Hello! On Mon, May 19, 2014 at 4:33 AM, Maxim Dounin wrote: > First of all, I think that people should think before specifying > error processing, especially complex error processing. > Unfortunately we cannot control what the users *think* :) Many users just try things away according to their in

Re: Dropped https client connection doesn't drop backend proxy_pass connection

2014-05-19 Thread Demetr
thanks/ use the lua-module it is possible? 19.05.2014 18:47, Valentin V. Bartenev пишет: I can try by using combination of add_header and $upstream_http_* variables. Also, some headers can be preserved by the proxy_pass_header directive. ___ nginx

Re: Dropped https client connection doesn't drop backend proxy_pass connection

2014-05-19 Thread Valentin V. Bartenev
On Saturday 17 May 2014 11:28:33 newnovice wrote: > Can I proxy_pass on the way back also - and preserve all headers coming from > the upstream service? > I can try by using combination of add_header and $upstream_http_* variables. Also, some headers can be preserved by the proxy_pass_header dir

Re: nginx VPS based ?

2014-05-19 Thread Dustin Oprea
On May 19, 2014 7:38 AM, "BONNET, Frank" wrote: > > Hello > > For internal purpose ( students projects ) I need to create several VPS > LAMP like but running under nginx > > It needs PHP, MYSQL + LDAP auth > > I need to have one VPS per project but running on the same nginx instance > the MYSQL se

Re: nginx VPS based ?

2014-05-19 Thread BONNET, Frank
I wrote an error ... I don't need VPS but server block ... sorry 2014-05-19 14:00 GMT+02:00 Demetr : > just need to enable the transfer of cookies. > > collect lua. > > in another it is possible? > > 19.05.2014 15:48, Jonathan Matthews пишет: > > On 19 May 2014 12:38, "BONNET, Frank" wrote:

Re: nginx VPS based ?

2014-05-19 Thread Demetr
just need to enable the transfer of cookies. collect lua. in another it is possible? 19.05.2014 15:48, Jonathan Matthews ?: On 19 May 2014 12:38, "BONNET, Frank" > wrote: > > Hello > > For internal purpose ( students projects ) Are /you/ the student in this

Re: nginx VPS based ?

2014-05-19 Thread Jonathan Matthews
On 19 May 2014 12:38, "BONNET, Frank" wrote: > > Hello > > For internal purpose ( students projects ) Are /you/ the student in this context? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

nginx VPS based ?

2014-05-19 Thread BONNET, Frank
Hello For internal purpose ( students projects ) I need to create several VPS LAMP like but running under nginx It needs PHP, MYSQL + LDAP auth I need to have one VPS per project but running on the same nginx instance the MYSQL server must also be shared ( one database per project ) Users must

Re: nginx rewrites $request_method on error

2014-05-19 Thread Maxim Dounin
Hello! On Fri, May 16, 2014 at 01:25:57PM -0700, Yichun Zhang (agentzh) wrote: > Hello! > > On Thu, May 15, 2014 at 11:56 PM, kay wrote: > > Don't you think this is a bug? > > > > I think the NGINX core should prevent bad things from happen when > > 1. the user configures complicated things in

Re: help как получить список кук

2014-05-19 Thread Maxim Dounin
Hello! On Mon, May 19, 2014 at 07:37:03AM +0400, Demetr wrote: > Что делаю не так? First of all, you are using wrong list. This one is English, please don't try to ask questions in Russian here. If you want to write in Russian, please use nginx-ru@ mailing list. See here for details: http