Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [openresty]

The tag has no usage guidance.

0
votes
1answer
31 views

Rewriting client “Host” http header before nginx validates the field

I get following request from a device and should proxy it to hd10.vtech.com: GET http://hd10.vtech.com/test/pp_firmware/HD10-CH010_SUOTA.bin HTTP/1.1 Host: http://hd10.vtech.com/test/...
0
votes
1answer
71 views

Log rotation in nginx

I've found an example of doing log rotation in Nginx here But a simple test with: set $date "2018-08-24"; access_log /home/tim/log/access-http-$date.log default; produces a log file named ...
0
votes
1answer
227 views

Nginx Proxy to AWS ELB not passing HTTPS protocol to Backend Instances

this is my first ever question, so please go easy on me! I'm trying to set up an Nginx proxy server to auto-generate SSL certificates using OpenResty/Lua and LetsEncrypt, within a multi-tenant SAAS ...
0
votes
1answer
73 views

significance of nginx upstream_connect_time logged as an empty value vs hyphen

I've noticed for 499 client timeouts the upstream_connect_time nginx logged is sometimes an empty value, and sometimes a hyphen '-'. I'm guessing this difference in how this field is logged means ...
0
votes
0answers
100 views

How to correctly set permissions on a folder so nginx can read from the directory and files

I am referencing my SSL files that are stored under: /etc/letsecrypt/live/www.example.com/fullchain.pem /etc/letsecrypt/live/www.example.com/privkey.pem From within nginx I need to be able to read ...
2
votes
2answers
161 views

Deleting key in Nginx cache and Backend database in the same request

I am using the open source Nginx as the web server with Proxy_cache. I have a unique usecase of deleting the key in cache as well as pass the request to the backend servers to delete the key in DB ...
0
votes
1answer
201 views

How to install OpenResty on Amazon Linux

I'm trying to install OpenResty on Amazon Linux but not having much luck. I've followed the instructions on the website for installation using yum here: https://openresty.org/en/linux-packages.html ...
0
votes
0answers
28 views

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 ...
1
vote
0answers
21 views

openresty nginx http call to backend server along with proxy_pass

my nginx.conf file : location /XYZ/ { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; ...
1
vote
0answers
72 views

Nginx: Change value of `ssl_verify_client` based on request IP

When setting up nginx with client-certificate config, ssl_verify_client should be set to on or optional. If we want to bypass verification for local users (like 192.168.0.0/24), we can use optional ...