Need help setting up cache for failover

2014-12-03 Thread Fry-kun
I'm trying to configure my sites to failover to fastcgi_cache when backends are unavailable -- but at the same time I want to return nginx errors (hiding backend errors) Here's a simplified version of my current config: fastcgi_cache_path /dev/shm/nginx_fastcgi_cache levels=1:2 inactive=3d key

Re: Custom compilation flag for an nginx module

2014-12-03 Thread Maxim Dounin
Hello! On Wed, Dec 03, 2014 at 11:28:28AM -0500, erankor2 wrote: > Thank you Maxim, your suggestion will definitely work for me. > > Are you familiar with any simple "non-core" module that does it ? I will > need to test for the existence of this function or the need to explicitly > add librt, a

nginx-build

2014-12-03 Thread Tatsuhiko Kubo
Hello! As I developed a convenient build-tool for nginx, I will introduce it. https://github.com/cubicdaiya/nginx-build nginx-build provides a command to nginx seamlessly. If you are interested in it, please see the slide below. https://speakerdeck.com/cubicdaiya/nginx-build -- Tatsuhiko Kubo

Re: Custom compilation flag for an nginx module

2014-12-03 Thread erankor2
Thank you Maxim, your suggestion will definitely work for me. Are you familiar with any simple "non-core" module that does it ? I will need to test for the existence of this function or the need to explicitly add librt, and update CORE_LIBS accordingly + define some preprocessor macro that I can l

Re: Custom compilation flag for an nginx module

2014-12-03 Thread Maxim Dounin
Hello! On Wed, Dec 03, 2014 at 10:47:01AM -0500, erankor2 wrote: > Hi all, > > Is it possible for an nginx module to define custom compilation switches > that add external libs / preprocessor macros ? Is there some example of a > module that does it ? No. > Specifically, what I'm trying to do

Custom compilation flag for an nginx module

2014-12-03 Thread erankor2
Hi all, Is it possible for an nginx module to define custom compilation switches that add external libs / preprocessor macros ? Is there some example of a module that does it ? Specifically, what I'm trying to do is measure time accurately in my module for benchmarking purposes. Since I use Linux,

Re: What HTTP headers does nginx send to SCGI and FastCGI application servers?

2014-12-03 Thread Some Developer
On 02/12/14 21:35, Cole Tierney wrote: On Tue, 02 Dec 2014 20:41:36 +, Some Developer wrote: I guess I'll just write my daemon and take a dump of all the headers manually to see exactly what to expect. At least then I can see how the library will perform under real world conditions. You co

[ANNOUNCE] ngx_cache_purge-2.2

2014-12-03 Thread Piotr Sikora
Version 2.2 is now available at: http://labs.frickle.com/nginx_ngx_cache_purge/ GitHub repository is available at: https://github.com/FRiCKLE/ngx_cache_purge/ Changes: 2014-12-02VERSION 2.2 * Fix compatibility with nginx-1.7.8+. 2014-05-19 * Fix build on Solaris with SunCC (Solaris St