Re: if-none-match with proxy_cache : properly set headers

2014-07-15 Thread quoter
Maxim Dounin Wrote: --- > Normally you shouldn't cache 304 responses from a backend, but > rather cache 200 responses from a backend and let nginx to return > 304 by its own. This is how it works by default. > > Do you have problems with the d

Re: proxied requests hang when DNS response has wrong ident

2014-07-15 Thread Pramod Korathota
On 15 July 2014 21:41, Ruslan Ermilov wrote: > diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c > --- a/src/core/ngx_resolver.c > +++ b/src/core/ngx_resolver.c > Thanks for the quick response and patch, Ruslan. I have tested a build incorporating this patch, and it behaves as e

Re: CORS headers not being set for a 401 response from upstream.

2014-07-15 Thread Maxim Dounin
Hello! On Tue, Jul 15, 2014 at 01:37:58PM -0400, ensing wrote: > Thanks Maxim for the documentation link. > > I am running into a similar issue. But it is for a 504 server time out. > > I'm doing a long-poll, but it is a cross domain long poll GET request. The > client implementation is trying

Re: Re[2]: Nginx multiple php sites

2014-07-15 Thread B.R.
If you use try_files with fastcgi_split_path_info, do not try to set PATH_INFO with $fastcgi_path_info directly as it will be empty. If PATH_INFO is not set (as it might not be required like you point it out) and stick with the $fastcgi_script_name of the split directive, then the PATH_INFO 2-line

Re: Nginx + LibreSSL - a first test

2014-07-15 Thread Piotr Sikora
Hey, > just Checked opensslv.h, and to the different in 2.0.1 from 2.0.0: > > # Define LIBRESSL_VERSION_NUMBER 0x2000L > # Define OPENSSL_VERSION_NUMBER 0x2000L They've added this as a way to differentiate between OpenSSL and LibreSSL. > i dont know whens Changing What Happens > # Define

Re[2]: Nginx multiple php sites

2014-07-15 Thread wishmaster
--- Original message --- From: "B.R." Date: 15 July 2014, 19:16:19 > > > I also think CodeIgniter needs the PATH_INFO environment variable set. This is not true, as you can choose of using PATH_INFO, QUERY_STRING, REQUEST_URI and so on, so this tricks with path_info is excessiv

Re: CORS headers not being set for a 401 response from upstream.

2014-07-15 Thread ensing
Thanks Maxim for the documentation link. I am running into a similar issue. But it is for a 504 server time out. I'm doing a long-poll, but it is a cross domain long poll GET request. The client implementation is trying to use CORS. It all works fine with when the GET requests returns something.

Re: Nginx multiple php sites

2014-07-15 Thread B.R.
I also think CodeIgniter needs the PATH_INFO environment variable set. Moreover, there is a potential security breach in your current configuration . The recommended way (when u

Re: Nginx multiple php sites

2014-07-15 Thread Anoop Alias
Hi, Simply changing server_name, root should work . If you are using a different port for different fastcgi process pool you have to change that too. -- *Anoop P Alias* GNUSYS ___ nginx mailing list nginx@nginx.org http://mailman

Re: Nginx multiple php sites

2014-07-15 Thread Anoop Alias
Perhaps this didnt work for you because you have root /var/www/example/; in the php location . Move up the root in location / to the server {} level and delete the root from php location . This is also the best approach as per nginX docs -- *Anoop P Alias* GNUSYS ___

Nginx multiple php sites

2014-07-15 Thread devsathish
Hi, I've been searching (last two days) to find how to setup multiple php sites using nginx. Couldn't find any documentation around it, hence writing it here. I've two codeignetor (php framework) in two different folders and served from same domain. For an example, example.com => /var/www/example

Re: Is it possible to send html HEAD early (chunked)?

2014-07-15 Thread Maxim Dounin
Hello! On Mon, Jul 14, 2014 at 08:35:40PM +0200, Martin Grotzke wrote: > Am 14.07.2014 14:54 schrieb "Maxim Dounin" : > > > > By default, nginx just sends what's already available. And for > > SSI, it uses chunked encoding. > > I don't understand this. In my understanding SSI (the virtual inclu

Re: Nginx + LibreSSL - a first test

2014-07-15 Thread Maxim Dounin
Hello! On Tue, Jul 15, 2014 at 02:17:02AM -0700, Piotr Sikora wrote: > Hey, > > > # Summary > > > > It works. > > ...only with versions older than nginx-1.7.0, you need a small patch > (attached) in order to compile nginx-mainline against LibreSSL, > because LibreSSL developers decided that Lib

Re: Nginx + LibreSSL - a first test

2014-07-15 Thread mex
Piotr Sikora Wrote: --- > Hey, > > > # Summary > > > > It works. > > only with versions older than nginx-1.7.0, you need a small patch > (attached) in order to compile nginx-mainline against LibreSSL, > because LibreSSL developers decided th

change stub status layout

2014-07-15 Thread cobain86
hi is there any way to change the stub status website layout i need the values in [vlaue] form (so with the [] on the website.) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251791,251791#msg-251791 ___ nginx mailing list nginx@nginx.org ht

Re: proxied requests hang when DNS response has wrong ident

2014-07-15 Thread Ruslan Ermilov
On Tue, Jul 15, 2014 at 08:04:44PM +1000, Pramod Korathota wrote: > We have recently discovered a very rare occurence when requests through > nginx will hang if the resolver sends a response with a mismatching ident. > We are seeing this in production with 1.7.1 and I have been able to > re-produc

proxied requests hang when DNS response has wrong ident

2014-07-15 Thread Pramod Korathota
We have recently discovered a very rare occurence when requests through nginx will hang if the resolver sends a response with a mismatching ident. We are seeing this in production with 1.7.1 and I have been able to re-produce with 1.7.3. The relevant parts of the config are: resolver 10.65.255.4;

Re: Strange try_files behaviour

2014-07-15 Thread itpp2012
With pure Lua and no IF (crossposted in openresty group): location / { try_files $uri $uri/ =404; index index.html index.htm; } location ~ \.php$ { try_files $uri $uri/ =404; rewrite_by_lua ' local s = 0; local

Re: Nginx + LibreSSL - a first test

2014-07-15 Thread Piotr Sikora
Hey, > # Summary > > It works. ...only with versions older than nginx-1.7.0, you need a small patch (attached) in order to compile nginx-mainline against LibreSSL, because LibreSSL developers decided that LibreSSL is OpenSSL-2.0.0... I didn't send this patch to nginx-devel@ yet, because I'm still