How to disable HTTP Server header in nginx ?

Solution Verified - Updated -


Due to a security requirement, we need to switch off any Version Header coming from nginx.


  • nginx 1.18, 1.20
  • Red Hat Enterprise Linux (RHEL) 8/9

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