Customizing the HTTP Response Header in RHEL
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-Tagheader?
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.