Book HomeWebmaster in a Nutshell, 3rd EditionSearch this book

19.14. mod_env

The mod_env module manages how environment variables are passed to CGI/SSI scripts from the shell running the httpd server. It contains three straightforward directives.

PassEnv

PassEnv variable ...

[server config or within <VirtualHost>]

Passes one or more environment variables to the server CGI scripts.

PassEnv HOME
SetEnv

SetEnv variable value

[server config or within <VirtualHost>]

Sets one or more environment variables in the context of a server CGI script.

SetEnv HOME /home/mike
UnsetEnv

UnsetEnv variable ...

[server config or within <VirtualHost>]

Unsets (removes) one or more environment variables from the context of a server CGI script.

UnsetEnv HOME


Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.