Re: Block extension for specified IP address

2021-01-06 Thread Dr_tux
Thanks for your help. I solved it as follows. location ~* \.(exe)$ { proxy_pass http://127.0.0.1:4545; allow 192.168.1.1/32; deny all; } Best. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,290354,290412#msg-290412 _

Re: Installing dynamic modules when Nginx itself is installed via yum/dnf (Linux)

2021-01-06 Thread Thomas Ward
You should, yes, to make sure your build as closely mirrors what is in the Fedora repos. Thomas On 1/6/21 11:19 PM, Phoenix Kiula wrote: Perfect. This is clear Thomas. Much appreciated...between Miguel's original pointer and this clarity from you I think it solves what I'm looking for. One

Re: Installing dynamic modules when Nginx itself is installed via yum/dnf (Linux)

2021-01-06 Thread Phoenix Kiula
Perfect. This is clear Thomas. Much appreciated...between Miguel's original pointer and this clarity from you I think it solves what I'm looking for. One last question: the `nginx -T` options...I'll add those to the ./configure command, yes? On Wed, Jan 6, 2021 at 10:55 PM Thomas Ward wrote: >

Re: Installing dynamic modules when Nginx itself is installed via yum/dnf (Linux)

2021-01-06 Thread Thomas Ward
This is where **manually compiling by hand** is the problem.  You would do the compilation in a separate directory **NOT** inside the space of the system's control - usually I spawn new `/tmp` directories or destructable directories in my home space. I'm not familiar with Fedora and the `dnf`

Re: Installing dynamic modules when Nginx itself is installed via yum/dnf (Linux)

2021-01-06 Thread steve
nginx -T will provide you with the config that is used for the delivered version of nginx 1.18.0 under fedora. That's a good starting point. Steve January 7, 2021 4:47 PM, "Phoenix Kiula" mailto:phoenix.ki...@gmail.com?to=%22Phoenix%20Kiula%22%20)> wrote: Thank you Thomas. Much appreciate t

Re: Installing dynamic modules when Nginx itself is installed via yum/dnf (Linux)

2021-01-06 Thread Phoenix Kiula
Thank you Thomas. Much appreciate this, it sounds promising. Appreciate your clarity. So if I: 1. Compile nginx via `dnf install nginx` and that becomes my system's Nginx, installed usually in `/etc/nginx` 2. In a totally separate folder, say, `/usr/src`, I then download a tarball of Nginx and c

Re: Installing dynamic modules when Nginx itself is installed via yum/dnf (Linux)

2021-01-06 Thread Thomas Ward
I'm fairly familiar with the 'compiling process' for dynamic modules - the process is the same for NGINX Open Source as wel as NGINX Plus. You would need to compile the modules alongside NGINX and then harvest the compiled .so files and put them into corresponding locations on the system you w

Re: memory usage for ssl_client_certificate

2021-01-06 Thread Maxim Dounin
Hello! On Tue, Jan 05, 2021 at 02:13:04PM -0800, Frank Liu wrote: > If I have a 5M pem file for ssl_client_certificate, and 1000 concurrent > connections, will nginx load the file 1000 times with 1000*5M memory usage, > or only 1 time load in memory to be shared across all connections? The certi

Re: Installing dynamic modules when Nginx itself is installed via yum/dnf (Linux)

2021-01-06 Thread Phoenix Kiula
Thank you Miguel. But you misunderstood the question. This suggestion... > nginx blog as a great guide on it though > https://www.nginx.com/blog/compiling-dynamic-modules-nginx-plus/ > > ...misses the very first question in this thread: we cannot compile nginx from source on our server. At lea

Re: Installing dynamic modules when Nginx itself is installed via yum/dnf (Linux)

2021-01-06 Thread Miguel C
it's just the standard way mostly but you might get help from the system... I mostly use FreeBSD for nginx or docker and in FreeBSD you have the ports system that helps, there's also "flavor" ports that install nginx with common modules or all and you can easily build and select just the ones you