Unit 1.17.0 release

2020-04-16 Thread Valentin V. Bartenev
Hi, I'm glad to announce a new release of NGINX Unit. In addition to improved stability, this release introduces two handy features. The first one is configured using the "return" and "location" options of the action object. It can be used to immediately generate a simple HTTP response with an

Re: Nginx wp-admin access control

2020-04-16 Thread basti
when you use fail2ban have a look on ipset it performe better on large lists. Am 16.04.20 um 17:13 schrieb Lawrence: Greetings All, WOW, thanks for all the suggestions guys. Not many of them are understood, I will try the fail2ban and see how far I get. Thanks gaian. Lawrence *From: * bas

Re: Nginx wp-admin access control

2020-04-16 Thread Lawrence
Greetings All, WOW, thanks for all the suggestions guys. Not many of them are understood, I will try the fail2ban and see how far I get. Thanks gaian. Lawrence From: basti To: Sent: 16/04/2020 4:54 PM Subject: Re: Nginx wp-admin access control I have not follow the entir

Re: Nginx wp-admin access control

2020-04-16 Thread basti
I have not follow the entire discussion. What is the goal to do with wp-admin? There are several ways to limit access: - http basic auth - use a x509 cert to authenticate instead of user/pass - write a hook plugin to wp_login() to use you own / external login - just use fail2ban to keep bad guys

Re: Nginx wp-admin access control

2020-04-16 Thread Francis Daly
On Wed, Apr 15, 2020 at 12:52:59PM +0200, Lawrence wrote: Hi there, > To start, I am very much a beginner to nginx and coding. I am a application > support engineer, but got very little development skills. I don't know WordPress; but on the nginx side, what matters is the request that is made

Re: Print current running connections in nginx

2020-04-16 Thread itpp2012
Best sample code: https://github.com/vozlt/nginx-module-vts Posted at Nginx Forum: https://forum.nginx.org/read.php?2,287673,287680#msg-287680 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Print current running connections in nginx

2020-04-16 Thread Mathew Heard
This is a snippet from something I was experimenting with. I can't recall it actually worked, but it might help for a start. Good Luck. ngx_cycle_t *cycle for (i = 0; i < cycle->connection_n; i++) { c = &conns[i]; if (c->fd == (ngx_socket_t) -1 || c->idle || c->listening) continue; hlc = (

Re: Print current running connections in nginx

2020-04-16 Thread sachin.she...@gmail.com
Thanks Mathew. I thought about it and even prototyped it with openresty, but I am concerned about ngx.shared.DICT.get_keys locking the whole dictionary and blocking connections that are trying to add new incoming connections. Is there some worker datastructure available that can be read and repo

Re: Print current running connections in nginx

2020-04-16 Thread Mathew Heard
Sachin, AFAIK Not easily. Each worker only knows about their own connections. You would need to build a module using a shared memory zone to track connections. Regards, Mathew On 16/04/2020, sachin.she...@gmail.com wrote: > Hi, > > Status module prints the count of active connections. > > Is th

Re: Print current running connections in nginx

2020-04-16 Thread Mathew Heard
Sachin, AFAIK Not easily. Each worker only knows about their own connections. You would need to build a module using a shared memory zone to track connections. Regards, Mathew On 16/04/2020, sachin.she...@gmail.com wrote: > Hi, > > Status module prints the count of active connections. > > Is th

Print current running connections in nginx

2020-04-16 Thread sachin.she...@gmail.com
Hi, Status module prints the count of active connections. Is there a way to fetch more details about currently running connections in nginx like request uri, started time similar to Apache's extended status. Thanks Sachin Posted at Nginx Forum: https://forum.nginx.org/read.php?2,287673,28767