NGINX Consulting
High-performance NGINX consulting — reverse proxy, load balancing, TLS termination, caching, security hardening, and advanced module configuration on Linux.
Get NGINX HelpOur NGINX Consulting Services
Zwiegnet delivers advanced NGINX expertise for organizations seeking the fastest, most efficient web server and reverse proxy. We support both open-source NGINX and NGINX Plus, optimizing deployments for high-traffic sites, microservices, API gateways, and modern application architectures on Linux.
Our NGINX services include:
- Installation & Core Configuration – Clean NGINX setups, server blocks, location directives, and best-practice structure for maintainability.
- TLS/SSL & HTTPS – Secure TLS configuration, Let’s Encrypt/ACME automation, HSTS, OCSP stapling, strong cipher suites, and certificate management.
- Performance Tuning – Worker processes, connections, gzip/brotli compression, static file caching, and kernel-level optimizations (sysctl).
- Reverse Proxy & Load Balancing – Upstream configurations, health checks, sticky sessions, IP hashing, and least_conn/round-robin strategies.
- Security Hardening – Rate limiting, IP allow/deny, mod_security (dynamic module), JWT authentication, and WAF-like rules.
- Advanced Modules – Stream module (TCP/UDP proxy), njs scripting, OpenTracing, headers-more, cache purging, and third-party modules.
- Caching & Content Optimization – Proxy/cache setup, microcaching, slice module, and integration with Redis or Memcached.
- WebSocket & gRPC Support – Proxying modern protocols with proper upgrade headers and buffering control.
- Logging & Monitoring – Custom log formats, JSON logging, Prometheus exporter integration, and real-time dashboards.
- High Availability – NGINX Plus active-passive/passive failover, keepalived/VRRP, or DNS-based failover strategies.
- Troubleshooting & Break-Fix – Diagnosis of 502/504 errors, connection resets, buffer overflows, and configuration issues.
Perfect for high-performance web serving, API gateways, microservices frontends, Kubernetes Ingress, or replacing Apache in modern stacks.
Located between Madison and Milwaukee, Wisconsin since 2009 — direct access to seasoned NGINX engineers with extensive production experience.
Server names, the proxy slash, and the worker limit
NGINX picks a server block by the address, the port, and the Host header or SNI name. default_server on one block is what answers when nothing matches. Two blocks marked default on the same listen is a configuration error, and nginx -t is not always loud about which one wins.
proxy_pass http://upstream; with no URI passes the original request URI through. proxy_pass http://upstream/app/; with a URI replaces the part that matched the location. One character, the trailing slash, decides whether the upstream sees /api/v1 or /app/api/v1. A 404 from the application that looks like a routing bug is often this.
worker_connections times worker_processes is the connection ceiling, and every proxied request uses two connections, one to the client and one to the upstream. A worker limit copied from a static-file guide falls over on a proxy. TLS protocols and the certificate chain are the certificate page. limit_req is a local rate limit, not a reputation service.
Questions
Why does the application see the wrong path?
proxy_pass includes a URI, so NGINX replaced the matched location with that URI. Remove the URI to pass the original path through, or set the replacement on purpose. nginx -T shows the line that is actually loaded.
What does 502 mean here?
NGINX reached the proxy and did not get a response it could use. The error log says connect() failed, a TLS error, or a timeout. Fix the upstream listener or the timeout. The 502 is NGINX. The cause is the line under it.