Re: How to send proxy cache status to backend server?

2014-03-19 Thread Makailol Charls
Hi, Is there some way to achieve this? I want to pass requests to backend based on cache status condition. Thanks, Makailol On Wed, Mar 19, 2014 at 7:45 PM, Maxim Dounin wrote: > Hello! > > On Wed, Mar 19, 2014 at 03:30:03PM +0530, Makailol Charls wrote: > > > One more thing I would like to k

Nginx Server with Two network Card

2014-03-19 Thread Thameera Nawaratna
Hi All, Server has installed with Nginx with one NIC and later on we add another NIC. we can use SSH or any other service to connect to the server with new IP address (New NIC). But I am not able to connect to the port define for Nginx server. I am not able to telnet to the port with new IP. Our

How to Purge cach of 502 and 504's

2014-03-19 Thread tobydunst
Hi All, I am using nginx as a reverse proxy and have configured it to cache 502 using proxy_cache_valid 502 30m; This is working fine, but my question is how do I purge these from the cache if required? There is no matching file in the proxy_cache_path to delete, so it appears the Nginx caches t

Re: How to send proxy cache status to backend server?

2014-03-19 Thread Maxim Dounin
Hello! On Wed, Mar 19, 2014 at 03:30:03PM +0530, Makailol Charls wrote: > One more thing I would like to know, would it be possible to proxy_pass > request conditionally based on $upstream_cache_status ? > > For example here we set request header with proxy_set_header Cache-Status > $upstream_ca

Re: XSLT, one XML file and differing URIs

2014-03-19 Thread Maxim Dounin
Hello! On Wed, Mar 19, 2014 at 06:48:25AM -0400, dvdnginx wrote: > Hello, > > I was wondering if anyone could put on the right path to do the following, > > So in it's simplest form, lets say I have one file "chapter.xml" in > directory A > > /A/chapter.xml > > I want to use nginx XSLT proce

Re: PHP type. Thread Safe or Non Thread Safe?

2014-03-19 Thread itpp2012
Its not my setup, its a common nginx example how to use a backend like PHP, this can be RoR, Perl or any other type of backend which has a listening interface nginx can pass information on to. Tests has shown that the NTS version is the most reliable/stable to use with nginx which does not mean TS

Re: PHP type. Thread Safe or Non Thread Safe?

2014-03-19 Thread Felix Quintana
thank you very much I think it has to do with nginx because it is part of your setup. The documentation specifies how to do work with php but never mention the type of php. And it's been hard to find. ___ nginx mailing list nginx@nginx.org http://mail

XSLT, one XML file and differing URIs

2014-03-19 Thread dvdnginx
Hello, I was wondering if anyone could put on the right path to do the following, So in it's simplest form, lets say I have one file "chapter.xml" in directory A /A/chapter.xml I want to use nginx XSLT processing ability to "present" this file based on different URIs, so If someone accesses /

Re: How to send proxy cache status to backend server?

2014-03-19 Thread Makailol Charls
One more thing I would like to know, would it be possible to proxy_pass request conditionally based on $upstream_cache_status ? For example here we set request header with proxy_set_header Cache-Status $upstream_cache_status; instead we can use condition like below, if ($upstream_cache_status = "

Optimal gcc parameters for building nginx from source

2014-03-19 Thread Reto Haeberli
Hello list Are there recommended gcc parameters when building nginx from source - regarding performance and security? --with-cc-opt=parameters I noticed that the prebuilt package on ubuntu used --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D

Re: How to send proxy cache status to backend server?

2014-03-19 Thread Maxim Dounin
Hello! On Wed, Mar 19, 2014 at 10:19:59AM +0530, Makailol Charls wrote: > Thanks, It is working. I was checking wrong variable name. > I have noticed that when catch is being "REVALIDATED", backend receives > "EXPIRED" and upstream receives "REVALIDATED". Is this correct ? Yes, it's correct. Th