Customizing the HTTP Response Header in RHEL

Solution Unverified - Updated -

Issue

  • How can you customize the HTTP Response Header in Apache? More specifically, how could one add a completely new header into the HTTP response?
  • How can we add X-Robots-Tag header?

HTTP Response Header Example:

DateThu, 11 Aug 2011 09:01:10
Apache Server
X-Powered-By PHP/5.1.6
Content-Type text / html; charset = UTF-8
Transfer-Encoding chunked
Proxy-Connection Keep-Alive
Connection Keep-Alive

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 4
  • httpd

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