• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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

(Apache 1.1 or later)

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

(Apache 1.1 or later)

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

(Apache 1.1 or later)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint