PassEnv
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.