Re: Insert Variable Values when loading a Cloud Config?

2016-07-11 Thread leeand00
This is just a guess, but probably a hashap...or maybe a DNS server that assigns them statically. But I suppose CoreOS has to request it from nginx, so it could probably even just pull it out of the request. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268241,268250#msg-268250

Need help with sub-request handling

2016-07-11 Thread Rajalakshmi Iyer
Hello, I am trying to write an Nginx module that tries to do the following in the content phase handler - - Read the POST body - Call a sub-request to another location module within the same server - Return a 204 response after the sub-request is completed (for test purposes only)

Re: forced 404 without a location display ?

2016-07-11 Thread Maxim Dounin
Hello! On Mon, Jul 11, 2016 at 03:26:30PM -0400, Jonathan Vanasco wrote: > I have some servers where I use an old method of gating a path > by using a file check. > > this allows staff to turn off certain locations during > migrations/updates without having root privileges (needed to >

Re: forced 404 without a location display ?

2016-07-11 Thread Oleg A. Mamontov
On Mon, Jul 11, 2016 at 03:26:30PM -0400, Jonathan Vanasco wrote: > I have some servers where I use an old method of gating a path by using a > file check. > > this allows staff to turn off certain locations during migrations/updates > without having root privileges (needed to restart nginx) >

forced 404 without a location display ?

2016-07-11 Thread Jonathan Vanasco
I have some servers where I use an old method of gating a path by using a file check. this allows staff to turn off certain locations during migrations/updates without having root privileges (needed to restart nginx) an issue I noticed– this method now (perhaps always) shows the name of the

Re: Insert Variable Values when loading a Cloud Config?

2016-07-11 Thread Francis Daly
On Mon, Jul 11, 2016 at 09:40:45AM -0400, leeand00 wrote: Hi there, > The question involves trying to have nginx fill in the variables for the > $private_ipv4 and $public_ipv4 when a config is loaded up. Does this > require that I use php-fpm to somehow recognize the machine sending the >

One goal. 2 settings. Which one would you recommend?

2016-07-11 Thread matt_l
Hi I am debating what is a better setting between the 2 settings below. Setting#1 and Setting#2 attempt to do the same task (flow control by controlling the IP sources). Setting#1 uses one machine and Setting#2 uses 2 machines in a cascading manner. Thank you for your help 1. Setting #1 1

Re: error_page redirect sends incomplete request to upstream

2016-07-11 Thread Maxim Dounin
Hello! On Sun, Jul 10, 2016 at 07:50:36AM +, Manole, Sorin wrote: > Hello, > > I opened https://trac.nginx.org/nginx/ticket/1010 for this. > > The bug appears when request_body_buffering is off (but maybe not only), and > error pages are set to be served from an upstream using an internal

Insert Variable Values when loading a Cloud Config?

2016-07-11 Thread leeand00
I asked a question on another site (http://stackoverflow.com/questions/37032806/does-bare-metal-coreos-etcd2-support-the-templating-feature-of-coreos-cloudinit) about loading a cloud config from nginx onto a bare-metal core-os machine. The question involves trying to have nginx fill in the

[njs] Fixed building by modern GCC versions.

2016-07-11 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/5e7e498eb90d branches: changeset: 119:5e7e498eb90d user: Igor Sysoev date: Mon Jul 11 15:24:29 2016 +0300 description: Fixed building by modern GCC versions. diffstat: njs/njs_string.c | 6 +++--- 1 files changed, 3

[njs] Needless argument checkers for String.toLowerCase()

2016-07-11 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/e4a0f80610b2 branches: changeset: 118:e4a0f80610b2 user: Igor Sysoev date: Fri Jul 08 18:13:00 2016 +0300 description: Needless argument checkers for String.toLowerCase() and String.toUpperCase() have been removed. diffstat:

[njs] Now ASCII strings use UTF8 variant of PCRE code.

2016-07-11 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/6888c62477a0 branches: changeset: 117:6888c62477a0 user: Igor Sysoev date: Fri Jul 08 18:07:57 2016 +0300 description: Now ASCII strings use UTF8 variant of PCRE code. diffstat: njs/njs_regexp.c | 5 - njs/njs_string.c |

[njs] Byte string processing was fixed in String.split(),

2016-07-11 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/73dc069a08c0 branches: changeset: 116:73dc069a08c0 user: Igor Sysoev date: Thu Jul 07 20:49:57 2016 +0300 description: Byte string processing was fixed in String.split(), the issue has been found by Coverity Scan. diffstat:

Re: AW: Issue with HTTP/2 and async file upload from Safari on iOS

2016-07-11 Thread ZaneCEO
@itpp2012 : building from source is a no-go for me due to future upgrade concerns @Lukas : will follow your suggestion and try the ngingx-provided bins, thanks! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267385,268236#msg-268236 ___

Add a postpone-mode to transfer request body to upstream

2016-07-11 Thread Lele Liu
Hi, I want to add a postpone mode to nginx for transfer data to upstream as described bellow. Any opinions? ##Purpose Purpose of this change is to provide a mode among nginx non-buffered mode and buffered mode. We call this mode `postpone mode`. In this mode, 1) request body is transferred