Questions tagged [openresty]

26 questions
0
votes
0 answers

Nginx :: Avoid caching FPM response by content-length

I have an odd upstream application (out of my control) which intermittently responds with incomplete pages, and a 200.. This causes blank pages to appear in cache. Is there a way to avoid caching a fastcgi/fpm backend response if the content-length…
Andrei
  • 125
  • 1
  • 7
0
votes
0 answers

Does nginx or openresty to support SAML authentication?

I have UI application built on react running behind a openrety server. I would like to integrate SAML based authentication for openresty or nginx. Any pointers here ?
Manu
  • 101
  • 6
0
votes
0 answers

Nginx return 200 instead of 206

I have a setup of the Nginx server (openresty) that has large files. When a client wants a range file Nginx sends 200 back instead of 206. This is the example of my curl test: curl -v -I -r 0- -X GET http://172.29.22.11/myBigFile.bin * Trying…
Meir
  • 1
  • 1
0
votes
0 answers

Nginx Proxy Manager - Keep Alive Setting

I have a question about which I am racking my brains. The following scenario. There is an application which displays a white page via the browser internally via a port and a path /keep-alive. Externally via the configured Nginx Proxy Manager the…
0
votes
1 answer

Remove "Via" response header from "ledge"

I have an Openresty web-server that is also working as caching server by using ledge. ledge is setting a "Via" response header that exposing the hostname of the server which is fqdn. Via: 1.1 xyz.example.com I have these in my openresty and ledge…
Minhaj
  • 177
  • 2
  • 14
0
votes
0 answers

Nginx/Openresty keeps creating an empty log file and writes in the previous one causing logs to never get rotated

My Django app runs on an nginx/openresty server. The user running the server is root:root but typically the app is owned by webapp:webapp. This means logs get created and written on by root. The problem is that logs aren't getting rotated because an…
dabadaba
  • 101
  • 3
0
votes
0 answers

no ssl configured for the server in OpenResty server

We switched from nginx to openresty just so we could use the lua-resty-auto-ssl plugin to generate SSL certs on the fly for user-owned domains they can plug into our system. Our main site was still using certs generated by certbot but it seems this…
dabadaba
  • 101
  • 3
0
votes
1 answer

Is it possible to avoid chunked transfer on lua nginx during body_filter_by_lua_block?

Let's say we want to change a response from a upstream, what we can do is to use Lua+nginx on the body_filter_by_lua_block phase, here's a snippet of that. server { listen 8181; location /media { alias /media/; } } server…
Leandro Moreira
  • 549
  • 1
  • 7
  • 12
0
votes
1 answer

Openresty cookies whitelist when using proxy_pass

I'm setting up an openresty reverse proxy that will dispatch traffic to one of 2 backends depending on the path. I would like certain cookies from backend1 not to be passed to backend2. How should I do ? Here is an my nginx.conf : worker_processes…
Hedi
  • 11
  • 1
0
votes
2 answers

Nginx rewrite/return phase order

I know there are Nginx phases. Why does the following snippet deliver the "200 Host: example.com" instead of forwarding to Google? What would be a generally valid workaround to evaluate Lua higher or before? server { listen 80; server_name…
uav
  • 494
  • 3
  • 16
0
votes
0 answers

Using OpenResty with previously installed nginx?

As we need to log response body at certain cases, ngx_lua module seems the solution, but, then, we found that we need to install OpenResty, which has a different NGiNX binary, and not related to previous installed NGiNX. How smooth it can be to…
simo
  • 150
  • 9
1
2