Apache Environment Variables
Apache Environment Variables
Environment Variables
IN THIS APPENDIX, I’ll present the environment variables.
Standard Variables
The environment variables in Table D-1 aren’t request-specific and are set for all
requests.
The environment variables in Table D-2 are specific to the request being fulfilled
by Apache.
1
Appendix D
Header Variables
In addition to these, the header lines received from the client, if any, are placed into
the environment with the prefix HTTP_ followed by the header name in capital letters
(see Table D-3). Any - characters in the header name are changed to _ characters. The
server may exclude any headers that it has already processed, such as Authorization,
Content-type, and Content-length. If necessary, the server may choose to exclude any
or all of these headers if including them would exceed any system environment limits.
An example of this is the HTTP_ACCEPT variable that was defined in CGI/1.0.
Another example is the header User-Agent.
2
Environment Variables
3
Appendix D
4
Environment Variables