[Sysadmins] Apache environment variables question

Paschal Nee pnee at toombeola.com
Wed Feb 10 17:58:53 GMT 2010

(Cross post from ILUG)


I have a farm of HTTP servers.  Using Apache I'd like to add a header
to each response that will identify the server that serviced the

I've tried
   Header set myHeader "%{SERVER_NAME}e"
   Header set myHeader "%{SERVER_ADDR}e"

But all I get in the response is

myHeader: (null)

I guess the SERVER_NAME and SERVER_ADDR are environment variables set by CGI.

Does anybody have a list of variables set by Apache?  Any idea how to
do the above.


More information about the Sysadmins mailing list