Questions tagged [openresty]

25 questions
0
votes
1 answer

Why is there a large deviation in wait time for nginx server

I have an Nginx server that acts as a reverse proxy and a static file server. My users complain that sometimes the response is slow. I tried examining the .her file to understand the issue better and found something unusual. time wait on…
0xPwn
  • 101
  • 1
0
votes
1 answer

Check response of one backend before proxying to another

I have two backends in two locations behind an Nginx frontend. Backend A implements authentication with OAuth. Backend B doesn't. I think a lazy way of adding authentication for location B would be to send each request to backend A first. The flow I…
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
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
  • 4
  • 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
  • 1
  • 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
  • 1
  • 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
  • 13
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
  • 534
  • 5
  • 20
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
  • 2
  • 11
1
2