nginx allows for the creation of 3rd party modules which are directly integrated in the nginx server or created as dynamic modules (.so) and loaded at run time when necessary.
Questions tagged [nginx-module]
32 questions
0
votes
3 answers
Nginx: install dynamic module on the server
My nginx version is nginx/1.18.0 (Ubuntu).
I want to install a dynamic module on the server https://www.nginx.com/resources/wiki/modules/headers_more/. The official documentation states:
"Grab the nginx source code from nginx.org, for example, the…

Sam Johnson
- 11
- 3
0
votes
0 answers
Nginx on Docker: redirect based on JWT authentication
I'm wondering how to configure nginx (running in a docker conatiner) to verify a JWT validity (passed by Authorization/Bearer or by Cookie, that's not the point) and consequently acts like a gateway.
If the JWT is invalid, or expired, the the nginx…

Hammeronthenet
- 132
- 2
- 14
0
votes
0 answers
How can I install "ngx_aws_auth" on ubuntu22.04?
I want to install https://github.com/anomalizer/ngx_aws_auth on ubuntu 22.04. please suggest if anyone knows how to?
tried searching on google for debian compatible rpm but could not find one so far.

Ammar Taj
- 11
- 2
0
votes
0 answers
r.requestBody/r.requestText/r.requestBuffer is undefined (NJS - JavaScript Modules on NGINX)
I'm building a NGINX module with JavaScript, that read incoming requests and design whether to pass them to the proxy server, or to ignore them and return a "block.html" page as a response [kinda WAF].
The problem is when I try to access…

NO NAME
- 1
- 1
0
votes
1 answer
When writing a module in C, how to correctly reference header files upon which the module is built?
For example, when writing an NGINX module and needing to include headers from said module, how do I do it?
#include
#include
Naturally, the headers are not found as they don't exist on disk. I doubt the proper way to solve…

Josh M.
- 26,437
- 24
- 119
- 200
0
votes
0 answers
Which phase of request processing does the ngx_http_proxy_module register itself?
I am developing a custom module and I need to use the proxy_pass directive. Therefore I want to specifically determine which phase of request processing is the directive called?

Kumar Pratyush
- 11
- 2
0
votes
0 answers
nginx mod_zip does not calculate checksum for upstream files
When using mod_zip for nginx you can specify - as the checksum for a file if it's unknown. Mod_zip will calculate the checksum for files on local block storage and add it automatically, but if the file comes from an upstream subrequesst the…

Mark Dineen
- 390
- 3
- 10
0
votes
1 answer
nginx - njs - ngx_http_auth_request_module how to return 302 to user?
I am using njs ngx_http_auth_request_module.
I have js function like this;
function introspectAccessToken(r) {
r.subrequest("/_oauth2_send_request",
function(reply) {
if (reply.status == 200) {
r.return(204);…

denizg
- 828
- 9
- 18
0
votes
1 answer
nginx module: compiles but fails to link a new library
I have modified an nginx module in a way that it depends on a library.... let's call the library that I need libx.
I have modified auto/os/linux in such a way that I am able to detect if libx is present... by adding something…

eftshift0
- 26,375
- 3
- 36
- 60
0
votes
1 answer
How to install the image_filter module on NGINX Open Source?
I am trying to let nginx handle my static files in my web server. To do that, I want to resize images. I found ngx_http_image_filter_module which seems to be what I want. But I can't get it to work.
Ideally, I want a solution for a docker ecosystem.…

R. Hidra
- 21
- 6
0
votes
2 answers
Nginx Module Code error_page directive problems
I am leveraging the ModSecurity WAF to help block tx's deemed dangerous on NGINX:
https://github.com/SpiderLabs/ModSecurity
https://github.com/SpiderLabs/ModSecurity-nginx
My issue can be found…

Jeremy Justus
- 31
- 8
0
votes
1 answer
Unable to change options for ngx_pagespeed
I was able to successfully add ngx_pagespeed to my Nginx server at Digital Ocean. I did an automated install per this: https://www.modpagespeed.com/doc/build_ngx_pagespeed_from_source
The module works - for example I can see it is automatically…

geochanto
- 972
- 2
- 13
- 45
0
votes
1 answer
Is it possible to splice advertisements or messages dynamically into an MP3 file via a standard GET request?
Say you have an MP3 file and it's 60,000,000 bytes, and you also have an MP3 advertisement that's 500,000 bytes, both encoded at the same bit rate.
Would it be possible using an nginx or apache module to change the MP3 "Content-Length" header value…

Adam
- 836
- 2
- 8
- 13
0
votes
1 answer
An output problem about nginx module?How to fix it?
I'm new to nginx and I'm trying to develope a simple nginx module,a handler module specifically. Although it's not what I really wanna do,I try to finish this task first. I'm trying to get the socketfd when a browser(or a client) connects to…

MickyZr
- 1
- 1
0
votes
1 answer
Calling custom nginx module after auth_request
I have a custom nginx module that sets some header to request before proxying request to a server. I also use auth_request for authentication. My location section contains auth_request as well as custom module directive. I want to ensure that the…

Varun
- 51
- 1
- 5