Re: Memory leaks when used as a shared library

2015-08-04 Thread Lord Nynex
Have you looked at https://github.com/openresty/no-pool-nginx ? On Sun, Aug 2, 2015 at 7:31 AM, xfeep wrote: > Hi, Maxim, > > Thanks for your reply! > --- > > Well, the answer is simple: nginx is not designed to be a shared > > library. If you

Re: http Keepalive implementation

2014-06-19 Thread Lord Nynex
Hello, It seems ZMQ and Nginx keep coming up in conversations lately. There seems to be differing opinions on it's performance/feasibility in production. Do you plan to open source your code? I'd be curious to look at it. On Thu, Jun 19, 2014 at 12:24 AM, prkumar wrote: > I was going through N

Re: website with login button, redirect to intranet?

2014-06-06 Thread Lord Nynex
Hello, Assuming your VPN subnet is 10.10.1.0/24, In your server{} block on erp.mywebpage.com.my you will want to put the following. allow 10.10.1.0/24; deny all; error_page 403 = @403; location @403 { echo "You are not authorized to view this page" } On Fri, Jun 6, 2014 at 6:07 PM, ericmachi

Re: Php-fpm requests eventually goes to queue !!

2014-05-22 Thread Lord Nynex
This does not seem like an nginx issue? On Thu, May 22, 2014 at 1:24 AM, shahzaib shahzaib wrote: > These are the new status for php-fpm now : > > pool: stats > process manager: dynamic > start time: 22/May/2014:12:17:39 +0500 > start since: 3975 > accepte

Re: Pretty printer for the Nginx config?

2014-05-19 Thread Lord Nynex
I do something similar to this in some backend config management code I wrote awhile back. I've created a gist with some code snippets to help understand how I'm reading/writing the config. https://gist.github.com/lordnynex/1a568e54b5d1af38f549 Obviously this is not what you're looking for, and p

Re: Quick question about using kill -USR1 to recreate access.log

2014-05-19 Thread Lord Nynex
The name of the file is really sort of irrelevant. The file descriptor will still point at $ACCESS_LOG_DROPBOX/$LOG_FILENAME. Any log lines between MV and KILL *should* still be written there. Why not use logrotate? Why not use nginx reload? Why not use HUP? On Mon, May 19, 2014 at 12:36 PM, Fra

Re: Directly redirecting prefix location to named one

2014-05-15 Thread Lord Nynex
http://wiki.nginx.org/HttpEchoModule#echo_exec I use this model in some parts of my configs. I, however, use openresty and I'm not clear if there are any functionality differences between them. On Wed, May 14, 2014 at 5:58 PM, B.R. wrote: > I am considering the following locations: > > locatio

Re: perl module for nginx

2014-05-15 Thread Lord Nynex
I'm a bit pressed for time but want to throw out a few incomplete thoughts on this. You will have a very difficult time doing IPC between worker processes unless you do IPC over a unix domain socket (and even then it sorta sucks). IMHO this is sub-optimal as this module has the ability to block th

Re: Return JSON for 404 error instead of html

2014-05-12 Thread Lord Nynex
Justink101, Using the echo module error_page 404 @404; location @404 { echo '{"status": "Not Found"}'; } On Mon, May 12, 2014 at 9:08 PM, justink101 wrote: > How can I return a custom JSON body on 404, instead of the default html of: > > > > > 404 Not Found > > > >

ngx_http_limit_req_module questions

2013-12-08 Thread Lord Nynex
Hello, I have a requirement to rate limit requests to one of my customer facing API's. At present Nginx is a proxy point directing traffic to network internal servers based on endpoint URL. I am interested in integrating more tightly with Nginx to do this rate limiting before the traffic is passed