Skip to main content
GrN.dk

Main navigation

  • Articles
  • Cases
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Join my community / free newsletter — sign up here

Breadcrumb

  1. Home

NGINX 1.30 changed upstream connection reuse: what to check before you upgrade

Illustrated infographic summarizing: NGINX 1.30 changed upstream connection reuse: what to check before you upgrade

By Greg Nowak. Updated 21 July 2026.

NGINX 1.30 changes an assumption that has sat quietly inside many reverse-proxy configurations for years. HTTP proxying now uses HTTP/1.1 and keeps upstream connections alive by default, instead of normally opening a fresh connection for each request.

For a modern application, connection reuse is usually a welcome improvement: fewer connection handshakes and less avoidable work between NGINX and the backend. But an apparently routine package update can expose old applications, connection-dependent authentication or configuration copied from an earlier NGINX era. That makes this a small compatibility project, not merely a package-manager task.

As of 21 July 2026, NGINX 1.30.4 is the current stable release. It also includes security fixes published on 15 July, so teams already running an earlier 1.30.x release should plan to move to the patched version rather than stopping at 1.30.0.

What changed in NGINX 1.30?

The change first appeared in mainline version 1.29.7 and reached the stable branch with 1.30.0. The default proxy protocol is now proxy_http_version 1.1. NGINX also enables an upstream keep-alive cache equivalent to keepalive 32 local: up to 32 idle connections per worker, kept local to the location using the upstream.

The number 32 is not a limit on total backend connections. It only controls how many idle connections each worker may retain. Active traffic can still create more. This distinction matters when estimating backend capacity or investigating a rise in open sockets.

Situation Recommended starting point Verify before rollout
Modern HTTP application Use the new defaults Error rate, response time and backend connection counts
Old or vendor-managed application Test connection reuse in staging Sessions, intermittent failures and stale responses
NTLM or Negotiate authentication Review the upstream authentication configuration Login, re-authentication and concurrent user journeys
Explicit keepalive 32; in a shared upstream Decide whether sharing is intentional Whether connections may be reused across locations
Backend requires a fresh connection Downgrade only the affected location That the exception does not spread to healthy routes
A practical decision matrix for an NGINX 1.30 upgrade review.

Audit the configuration NGINX actually loads

Do not begin with the one configuration file someone remembers editing. Includes, deployment templates and hosting control panels often make the effective configuration quite different. The -T option checks the configuration and prints all loaded files:

sudo nginx -T 2>/dev/null | grep -nE \
'proxy_http_version|proxy_set_header[[:space:]]+Connection|keepalive|ntlm'

sudo nginx -V
sudo nginx -t

The first command finds the directives most likely to affect this change. nginx -V records the installed version, build options and modules; nginx -t should be run again immediately before reloading.

Pay particular attention to proxy_set_header. These directives inherit from the parent context only when none are defined at the current level. Adding one header inside a location can therefore stop the complete parent set from being inherited. Review each block as a group rather than deleting a single line in isolation.

Challenge old keep-alive snippets

Before 1.29.7, administrators commonly enabled upstream reuse with:

proxy_http_version 1.1;
proxy_set_header Connection "";

Those lines are no longer required merely to obtain standard HTTP/1.1 keep-alive behaviour. They are not automatically harmful, but redundant configuration creates doubt about what is deliberate. Remove it through a tested change, especially if the same include serves several client sites.

An explicit keepalive 32; deserves closer attention. Under current NGINX behaviour, omitting the directive uses local connection caches. Writing it without the local parameter permits matching cached connections to be reused across locations that reach the same upstream address. If isolation is the intention, make it explicit:

upstream application_backend {
    server 127.0.0.1:8080;
    keepalive 32 local;
}

Do not tune keepalive_requests, keepalive_time or keepalive_timeout simply because they exist. Change them only in response to a documented backend constraint, measured socket pressure or a reproducible failure.

Give awkward backends a narrow exception

Legacy applications can make connection-scoped assumptions that ordinary browser testing misses. Exercise login and logout, parallel requests, file uploads, administrative actions, timeout recovery and requests made after an idle period. For NTLM or Negotiate authentication, confirm that the upstream uses NGINX's ntlm handling and test with realistic concurrent sessions.

If a backend genuinely requires HTTP/1.0 and closed connections, contain the exception to its location:

location /legacy-app/ {
    proxy_pass http://legacy_backend;
    proxy_http_version 1.0;
    proxy_set_header Connection "Close";
}

This sacrifices reuse only where necessary. A server-wide downgrade would hide the compatibility issue while discarding the benefit for every healthy application.

Make the rollout observable and reversible

Capture a baseline before upgrading: upstream response and connection times, 502 and 504 rates, authentication failures, backend connection counts and application logs. Then canary the routes most likely to expose trouble—authentication, administration and older line-of-business applications—rather than assuming the busiest public page is the best test.

Keep the previous package and configuration deployment path available, but prefer a narrow configuration exception when one backend fails. Record why that exception exists and who owns its removal. Otherwise, today's emergency line becomes tomorrow's unexplained infrastructure folklore.

For business owners and agency teams, the useful deliverable is not simply “NGINX upgraded.” It is an inventory of affected applications, a tested configuration, agreed monitoring and a rollback decision that somebody can execute. If your estate mixes inherited client configurations with older vendor systems, Greg can help turn that review into a controlled upgrade plan.

Related on GrN.dk

  • MariaDB 10.6 EOL: quiet CMS hosting debt needs a real upgrade plan before July 2026
  • AI automations need a spend dashboard before the first runaway bill
  • Apache 2.4.68 Is a Reminder That Old Proxy Rules Need a Real Audit

Need help with this kind of work?

Discuss your NGINX upgrade with Greg Get in touch with Greg.

Sources

  • nginx news: 2026
  • Keep-alive to upstreams is now default in NGINX 1.29.7
  • Module ngx_http_upstream_module
  • Module ngx_http_proxy_module
  • NGINX command-line parameters
Last modified
2026-07-27

Tags

  • Nginx
  • backend compatibility
  • Performance
  • Server Operations

Review Greg on Google

Greg Nowak Google Reviews

 

Illustrated infographic summarizing: WordPress 7.1 Moves Image Work Into the Browser—Test Every Media Hook
WordPress 7.1 Moves Image Work Into the Browser—Test Every Media Hook
2026-08-11

WordPress 7.1 shifts image processing into supported browsers. Here is what to test across hooks, CDNs, formats, security headers, and fallbacks.

Illustrated infographic summarizing: Prompt Caches Have Write Costs Now—Audit What Your Workflow Reuses
Prompt Caches Have Write Costs Now—Audit What Your Workflow Reuses
2026-08-10

GPT-5.6 makes cache writes billable. See how to spot wasted writes, stabilise prompt prefixes, place breakpoints and measure whether caching pays.

Illustrated infographic summarizing: The AI Crawler in Your Logs May Be Wearing a Borrowed Name
The AI Crawler in Your Logs May Be Wearing a Borrowed Name
2026-08-09

A User-Agent is a claim, not proof. See how to verify AI crawler traffic before it shapes reporting, robots.txt decisions, or WAF exceptions.

Illustrated infographic summarizing: AI Agents Need a Spending Brake, Not Just a Billing Dashboard
AI Agents Need a Spending Brake, Not Just a Billing Dashboard
2026-08-08

AI agent costs can climb inside a single workflow. Runtime budgets, loop detection, outcome metrics, and safe handoffs keep that spending under control.

Illustrated infographic summarizing: Drupal 12 Slipped to December. Drupal 10 Still Runs Out of Road
Drupal 12 Slipped to December. Drupal 10 Still Runs Out of Road
2026-08-07

Drupal 12 arrives as Drupal 10 support ends in December 2026. Moving to Drupal 11.3+ first keeps two mandatory upgrades manageable.

Illustrated infographic summarizing: EU OpenAI Residency Is a Migration Project, Not a Dashboard Toggle
EU OpenAI Residency Is a Migration Project, Not a Dashboard Toggle
2026-08-05

An EU-resident OpenAI API setup needs a new project, regional routing, dependency and state migration, compatibility testing, and clear governance evidence.

Illustrated infographic summarizing: AI Images Need a Chain of Custody, Not Just a Disclosure Label
AI Images Need a Chain of Custody, Not Just a Disclosure Label
2026-08-04

AI image labels are only the endpoint. Learn how to test C2PA credentials through editing, CMS, CDN and agency handoffs while preserving evidence.

Illustrated infographic summarizing: MCP Just Went Stateless: Audit the Integrations Behind Your AI Tools
MCP Just Went Stateless: Audit the Integrations Behind Your AI Tools
2026-08-03

The 28 July 2026 MCP release removes protocol sessions and changes discovery, tasks, caching, OAuth and tracing. A practical guide to auditing the move.

Illustrated infographic summarizing: SEO Trends for 2026: What Actually Changed Since 2024
SEO Trends for 2026: What Actually Changed Since 2024
2026-08-03

A practical guide to what changed in SEO between 2024 and 2026, from AI and multimodal search to Core Web Vitals, privacy and local visibility.

Illustrated infographic summarizing: INP and Green SEO Share a Backlog: Cut the Work Every Visit Repeats
INP and Green SEO Share a Backlog: Cut the Work Every Visit Repeats
2026-08-03

INP and sustainable web work often expose the same waste. Use field data, profiling, caching and performance budgets to build one practical backlog.

More articles
RSS feed

Footer

  • All articles
  • Contact

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.