Top "Openresty" questions

OpenResty (aka.

Nginx startup prompt [emerg] no "events" section in configuration

In the X-WAF deployment, you need to create a new nginx configuration file. However, when testing the nginx configuration, an …

nginx openresty web-application-firewall
Openresty: Make an http call with lua and return its parsed result

My problem I am using openresty to build a simple server. Upon calling this server, it should make another call …

nginx lua openresty
How to dynamically add an upstream in Nginx?

I mean add an upstream but not a server in an upstream. That means I don't have an upstream block …

nginx lua openresty
Unable to use environment variables in Lua code

I have some Lua code, which I use in my openresty nginx.conf file. This Lua code contains such lines: ... …

nginx lua openresty
ngx_lua how to remove http request header

There is a param named "RedirectURL" in http request header. I want to remove it in ngx_lua and then …

nginx openresty
nginx monitoring response from upstream server

I have a reverse proxy setup with nginx. Client ------> Nginx ------------------------------------> Backend Server <------ <----------------------------------- (…

nginx reverse-proxy openresty
Redirect to same URL with Lua on Nginx (openresty setup)

I'm looking to modify a request header and redirect it in Lua, I've tried ngx.redirect("/") and ngx.exec("/") but …

nginx lua openresty