Throttle requests with limit_req rate based on header from response to auth...
I'm hoping to use the limit_req directive with different rates based on a header that is returned from the auth subrequest. I got some ideas from https://www.ruby-forum.com/topic/4418040 but am running...
View Articlemirror delay (3 replies)
Hi, I'm using the mirror module in my "production" nginx in order to mirror real traffic to a test envrionment. I don't want this mirroring to affect the latency of the production environment, but it...
View ArticleIgnore Certificate Errors (1 reply)
Hello, is there a way to make NGINX more forgiving on TLS certificate errors? Or would that have to be done in OpenSSL instead? When I use openssl s_client, I get the following errors from the upstream...
View ArticleServe multiple requests from a single proxy request (2 replies)
Hello, I'm wondering if nginx is able to serve multiple requests from a single proxy request before it completes. I am using the following configuration: proxy_cache_lock on; proxy_cache_lock_timeout...
View ArticleRewrite with number after hyphen (no replies)
Hi, I detected an issue with my rewrite rule in the nginx.conf and I don't understand why it happens and how to fix it. I have tested in two environments with versions 1.10.3 and 1.14.0. Having the...
View Articleadd checksum to nginx log entries (no replies)
Hi, I'm wondering if there is a ready way to add a checksum (e.g. CRC) to the end of each log entry before they get written to the "access" or "error" log files? One of the project I work on wants each...
View Articlereverse proxy multiple subdomains problems (no replies)
I am trying to do a redirect from http and a reverse proxy to my apache web server. I would like to include several subdomains, they all have dns records and apache virtual hosts setup on the other...
View ArticleSet `expires` by MIME type (no replies)
Hello. I am attempting to use `expires` on Nginx 1.15.3 to define the expiry of files on a per MIME type basis. I have used [1] as a base, and constructed the following `map` in the `http` section of a...
View ArticleNGINX Logs balancerWorkerName but NOT balancerName (no replies)
Hello All, I have a situation where NGINX appears to be logging the balancerWorkerName but NOT the balancerName... The requests are a 404, the balancerName exists. Any idea why this would be happening?...
View ArticleReverse proxy (no replies)
Hi All, New to nginx and reverse proxies. Trying to setup reserves proxy using nginx and docker. Have defined upstream in nginx config and created dependency in docker-compose as well. However getting...
View ArticleProblem when reconfiguring Nginx for SSL with self-signed certificate (no...
I have a VPS on Digital Ocean with Ubuntu 18.04, Nginx, Gunicorn, Django, and a test web application, all configured (ufw) to work with http: 80. Everything works perfectly. Tutorial:...
View Articlenginx sends 301 redirect for alias in location (no replies)
Hi. Could you, please, explain. Why nginx sends 301 redirect for the following vhost: server { listen 80; server_name test.domain.tv http://test.m9.smotreshka.tv; access_log off; location =...
View ArticleNginx openssl Async mode support (no replies)
Hi Team, I am new to Nginx and I am developing a new OpenSSL Dynamic engine which supports OpenSSL async mode. I have verified the async mode function via speed command provided by OpenSSL. Now I need...
View ArticleWill nginx return 502 without any log in certain case? (no replies)
I have my nginx running on EC2(Amazon Linux) behind ALB (Load Balancer of AWS). Usually it works just fine but very rarely ALB receive 502 bad gateway form the EC2 instance. I checked both access.log...
View ArticleDjango proxy_pass redirect issues (no replies)
Hello, I faced an issue with nginx proxy_pass to a Django app. I configured nginx server to this django: ####### server { listen 443 ssl; server_name mydjango.com; ssl on; ssl_certificate...
View ArticleConfig problems with Amplify (no replies)
Hi, my nginx config hierarchy is: /etc/nginx/nginx.conf (commented out except for a single include directive of /etc/nginx/conf.d/*.conf) /etc/nginx/conf.d/default.conf (server-wider config directives...
View ArticleAdd Header to cached response? (no replies)
Hello, is there a way to add a header to the cached response? I have used ngx_http_headers_module’s add_header directive, which adds the header to the response at the time the response is generated....
View ArticleAvoiding Nginx restart when rsyncing cache across machines (no replies)
I run a mini CDN for a static site by having Nginx cache machines (in different locations) in front of the origin and load balanced by Cloudflare.. Periodically I run rsync pull to update the cache on...
View ArticleSSL stream to HTTP2 server (2 replies)
Hello, I’m trying to basically use nginx as replacement to hitch (for Varnish). Request goes like this: browser → nginx (stream SSL) → varnish (HTTP2 on) → backend HTTP stream { server { listen 443...
View Articlenginx as nonroot - setsockopt not permitted (2 replies)
Hi, we use nginx which load-balances toward our snmptrapd. Everything is working fine if we start nginx with root. We would like to change it so nginx (workers) would start with nginx user. I couldn't...
View Article