nginx is slow to start with many proxy_pass entries

Solution Verified - Updated -

Issue

  • Our nginx configuration contains hundreds of proxy_pass entries. When attempting to start, nginx is taking many minutes to start even to the point of reaching a systemd timeout to fail the start up. If we remove or reduce proxy_pass entries, then the start time is reduced.

Environment

  • Red Hat Enterprise Linux (RHEL)
    • nginx

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content