Re: Some Issues with Configuration

2014-03-05 Thread Steve Holdoway
Hi! On Wed, 2014-03-05 at 21:18 +, Richard Ibbotson wrote: > On Wednesday 05 Mar 2014 21:03:22 Jonathan Matthews wrote: > > Nginx doesn't execute PHP. It passes each request destined for your > > blog (i.e. the locations you decide are "your blog") to another > > process that runs/is-running

Re: OCSP, ssl_trusted_certificate, and ssl_stapling_verify

2014-03-05 Thread Maxim Dounin
Hello! On Wed, Mar 05, 2014 at 11:49:24AM -0800, Scott Larson wrote: > In setting up OCSP stapling on 1.5.10 I've found it behaving in a way > which is opposite to what I perceive is documented. There it states that > the contents of ssl_trusted_certificate are not sent to the client. Howeve

Re: Memory usage doubles on reload

2014-03-05 Thread Maxim Dounin
Hello! On Wed, Mar 05, 2014 at 05:47:47PM -0500, PetrHolik wrote: > Hello we are running nginx 1.2.7 with this in conf: > output_buffers 5 5m; > sendfile off; > > That works well, BUT if I reload server configuration with nginx -s reload > Memory consumptions for few hours(clients use long l

Re: Confusion over apparently conflicting advice in guide/wiki/examples

2014-03-05 Thread Francis Daly
On Wed, Mar 05, 2014 at 04:52:29PM -0500, talkingnews wrote: Hi there, just to avoid sending package maintainers on a wild goose chase... > The only remaining confusion comes with the provided nginx config files > which appear to contradict best practice To understand that, you should probably

Memory usage doubles on reload

2014-03-05 Thread PetrHolik
Hello we are running nginx 1.2.7 with this in conf: output_buffers 5 5m; sendfile off; That works well, BUT if I reload server configuration with nginx -s reload Memory consumptions for few hours(clients use long lived(few hours) tcp connections). Is this behavior correct? Can we avoid this? W

Re: Nginx postgres problem

2014-03-05 Thread Yichun Zhang (agentzh)
Hello! On Wed, Mar 5, 2014 at 2:21 PM, arunh wrote: > Depending on the parameters a,b,c and d I will get the IP and port of the > destination server (by communicating with postgres) where the request must > be redirected to ie the new url is of the form: > http://IP:port/a/b/c/d. > You need eithe

Re: Nginx postgres problem

2014-03-05 Thread arunh
Hello Yichun, The use case I am trying to test is the client sends a request to nginx server with some parameters say "/a/b/c/d": http://NginxHost/a/b/c/d Depending on the parameters a,b,c and d I will get the IP and port of the destination server (by communicating with postgres) where the reques

Re: Confusion over apparently conflicting advice in guide/wiki/examples

2014-03-05 Thread talkingnews
Thanks for the replies, and especially to Francis for clearly differentiating the aspects and responsibilities of the NGiͶX "flow", if I can call it that. The only remaining confusion comes with the provided nginx config files which appear to contradict best practice (as well as setting up paramet

Re: Some Issues with Configuration

2014-03-05 Thread Jonathan Matthews
On 5 March 2014 21:18, Richard Ibbotson wrote: > On Wednesday 05 Mar 2014 21:03:22 Jonathan Matthews wrote: >> Nginx doesn't execute PHP. It passes each request destined for your >> blog (i.e. the locations you decide are "your blog") to another >> process that runs/is-running the PHP. Take a look

Re: Some Issues with Configuration

2014-03-05 Thread Richard Ibbotson
On Wednesday 05 Mar 2014 21:03:22 Jonathan Matthews wrote: > Nginx doesn't execute PHP. It passes each request destined for your > blog (i.e. the locations you decide are "your blog") to another > process that runs/is-running the PHP. Take a look here, and it might > help: >> http://wiki.nginx.or

Re: Some Issues with Configuration

2014-03-05 Thread Jonathan Matthews
On 5 March 2014 11:13, Richard Ibbotson wrote: > Hi > > I've been having a few problems with configuration of NGINX. No > problems with running Apache or Lighttpd on my own Linux box but I've > been scratching my head over NGINX. > > When I've compiled from source or used the vanilla Ubuntu packa

Re: Worker dies with a segfault error

2014-03-05 Thread Yichun Zhang (agentzh)
Hello! On Wed, Mar 5, 2014 at 6:56 AM, greekduke wrote: > I suppose you are correct. I have tried to recreate the problem without the > two modules and I haven't succeeded yet. The ngx_eval module is known to have issues. Can you reproduce the crash by replacing ngx_eval with ngx_lua? If you sti

Re: Nginx postgres problem

2014-03-05 Thread Yichun Zhang (agentzh)
Hello! On Wed, Mar 5, 2014 at 8:39 AM, arunh wrote: > location /postgresrewrite > { >rewrite ^ "http://$nodeIP:$port/$inputURI";; > } > [...] >rewrite_by_lua ' >res5=ngx.location.capture( > "/postgresrewrite", { share_all_vars = true } ); >

Re: Nginx postgres problem

2014-03-05 Thread Yichun Zhang (agentzh)
Hello! On Wed, Mar 5, 2014 at 8:39 AM, arunh wrote: > I had to make a series of postgres calls so I used content_by_lua along by > sharing the varialbes as I had to query tables from multiple databases. > No, you should use rewrite_by_lua exclusively for all the ngx.location.capture calls here I

OCSP, ssl_trusted_certificate, and ssl_stapling_verify

2014-03-05 Thread Scott Larson
In setting up OCSP stapling on 1.5.10 I've found it behaving in a way which is opposite to what I perceive is documented. There it states that the contents of ssl_trusted_certificate are not sent to the client. However when I enable ssl_stapling_verify, which requires the inclusion of in this

Re: Nginx postgres problem

2014-03-05 Thread arunh
Hello Yichun, Thank you very much for the reply. I have used ngx.location.capture for extracting the values from postgres database as suggested by you. I had to make a series of postgres calls so I used content_by_lua along by sharing the varialbes as I had to query tables from multiple databases

Re: Worker dies with a segfault error

2014-03-05 Thread Maxim Dounin
Hello! On Wed, Mar 05, 2014 at 09:56:05AM -0500, greekduke wrote: > Hello, > > I suppose you are correct. I have tried to recreate the problem without the > two modules and I haven't succeeded yet. Anyway I need the modules so I can > live with some segmentation faults. From the part of debug lo

Re: nginx-1.5.11

2014-03-05 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.5.11 for Windows http://goo.gl/S5nlT1 (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds of Nginx. Officially supported native Windows binaries are at nginx.org. Announcements are also availa

Re: [nginx-announce] nginx-1.4.6

2014-03-05 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.4.6 for Windows http://goo.gl/kNh5PS (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds of Nginx. Officially supported native Windows binaries are at nginx.org. Announcements are also availab

RE: NGINX proxy, 502 error while SSL handshaking to upstream

2014-03-05 Thread Juan Matías
Hello! On Tue, Feb 25, 2014 at 04:34:34PM +0100, Juan Matías wrote: >* Hello everyone, I'm new here and this my first post in this mailing list, *> >* Maybe this is a frequently answered question but I could't find a solution. *>* Maybe is a "layer 8" issue. *> >* Right now, I have a Nginx(1.0.8)

Re: Worker dies with a segfault error

2014-03-05 Thread greekduke
Hello, I suppose you are correct. I have tried to recreate the problem without the two modules and I haven't succeeded yet. Anyway I need the modules so I can live with some segmentation faults. From the part of debug log below I think that the worker (5201) before dying closes properly the connec

Re: proxy_pass with variable removes uri

2014-03-05 Thread Maxim Dounin
Hello! On Wed, Mar 05, 2014 at 07:46:38AM -0500, luckyswede wrote: > Cool, that works! > I don't understand why though, why is the uri urldecoded in my example but > not in your example? In your config, URI is defined using variables, and your are responsible for proper urlencoding. Config sug

Re: redirect 301 alias domain

2014-03-05 Thread Francis Daly
On Wed, Mar 05, 2014 at 03:18:31AM -0500, zuckbin wrote: > i don't understand why you said that is not the good conf file is used ? > > how do you know this ? You request http://www.aaa.com/. You get a redirect to http://www.aaa.com/. Which part of the configuration you showed does a redirect to

Re: proxy_pass with variable removes uri

2014-03-05 Thread luckyswede
Cool, that works! I don't understand why though, why is the uri urldecoded in my example but not in your example? Also, I actually want the dns resolution to take place because I'm running in an AWS environment.. Thanks / Jonas Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248124,24

Re: proxy_pass with variable removes uri

2014-03-05 Thread Francis Daly
On Wed, Mar 05, 2014 at 07:23:23AM -0500, luckyswede wrote: Hi there, > I've had troubles with url-decoding using this kind configuration, e.g. get > variables with values containing spaces have been decoded before proxied > which is resulting in an error. Untested, but I'd suggest to use a map

Re: proxy_pass with variable removes uri

2014-03-05 Thread Maxim Dounin
Hello! On Wed, Mar 05, 2014 at 07:23:23AM -0500, luckyswede wrote: > Hi, > I've had troubles with url-decoding using this kind configuration, e.g. get > variables with values containing spaces have been decoded before proxied > which is resulting in an error. > For example I've tried: > location

Re: proxy_pass with variable removes uri

2014-03-05 Thread luckyswede
Also, I want to make use of a resolver, which requires variables in the proxy_pass directive. Does this mean that it is not possible to automatically "strip" out the leading "/api" (which seems to not work with variables) and using resolvers (which requires variables)? BR / Jonas Posted at Nginx

Re: proxy_pass with variable removes uri

2014-03-05 Thread luckyswede
Hi, I've had troubles with url-decoding using this kind configuration, e.g. get variables with values containing spaces have been decoded before proxied which is resulting in an error. For example I've tried: location ~ ^/api/(.*) { proxy_pass http://api.$host/$1$is_args$args; } but that gives

Re: proxy_pass with variable removes uri

2014-03-05 Thread luckyswede
Thanks, But I want to automatically remove the "/api" part, just as it does if I don't use variables. So that isn't possible? BR / Jonas Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248124,248128#msg-248128 ___ nginx mailing list nginx@ng

Re: proxy_pass with variable removes uri

2014-03-05 Thread Valentin V. Bartenev
On Wednesday 05 March 2014 05:47:58 luckyswede wrote: > Hi, > I have a conf with two virtual hosts and a proxy-pass that is dependent on > which host the request arrived to, like this: > > server { > listen 80; > server_name x.com y.com; > resolver 8.8.8.8; > ro

Re: proxy_pass with variable removes uri

2014-03-05 Thread Maxim Dounin
Hello! On Wed, Mar 05, 2014 at 05:47:58AM -0500, luckyswede wrote: > Hi, > I have a conf with two virtual hosts and a proxy-pass that is dependent on > which host the request arrived to, like this: > > server { > listen 80; > server_name x.com y.com; > resolver 8.8.8.

Some Issues with Configuration

2014-03-05 Thread Richard Ibbotson
Hi I've been having a few problems with configuration of NGINX. No problems with running Apache or Lighttpd on my own Linux box but I've been scratching my head over NGINX. When I've compiled from source or used the vanilla Ubuntu package I find that I can download the front page from my bo

proxy_pass with variable removes uri

2014-03-05 Thread luckyswede
Hi, I have a conf with two virtual hosts and a proxy-pass that is dependent on which host the request arrived to, like this: server { listen 80; server_name x.com y.com; resolver 8.8.8.8; root /var/www/html; location / { # whatever }

Re: redirect 301 alias domain

2014-03-05 Thread zuckbin
i don't understand why you said that is not the good conf file is used ? how do you know this ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248038,248123#msg-248123 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/l