Name
PassEnv
Synopsis
PassEnv
This directive passes an environment variable to CGI scripts from the environment that was in force when Apache was started.[2] The script might need to know the operating system, so you could use the following:
PassEnv OSTYPE
This variation assumes that your operating system sets
OSTYPE
, which is by no means a foregone
conclusion.
[2] Note that when Apache is started during the system boot, the environment can be surprisingly sparse.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.