- Overview
- Installation & Uninstallation
- Local and remote management using IIS 7
- Context and processing order
- Apache compatibility
- Modules
- core functions
- mod_antibot
- mod_asis
- mod_auth_basic
- mod_auth_digest
- mod_authn_anon
- mod_authn_dbd
- mod_authn_default
- mod_authn_file
- mod_authz_default
- mod_authz_groupfile
- mod_authz_host
- mod_authz_user
- mod_cache
- mod_dbd
- mod_deflate
- mod_developer
- mod_dir
- mod_disk_cache
- mod_env
- mod_evasive
- mod_expires
- mod_filter
- mod_gzip
- mod_headers
- mod_hotlink
- mod_linkfreeze
- mod_log_config
- mod_logio
- mod_mem_cache
- mod_mime
- mod_proxy
- mod_replace
- mod_rewrite
- mod_seo
- mod_setenvif
- mod_so
- mod_speling
- mod_usertrack
- mod_xsendfile
 
- Articles
- Release history
- Troubleshooting
- License agreement
mod_env
Overview
   
    mod_env
   
   module 
provides control of the environment that will be provided to CGI scripts 
  and SSI pages. Alternatively, environment 
  variables may be set or unset within the configuration process.
  
Quick start
Here's how you can enable some useful Ape modules with the help of mod_env:
# enables mod_linkfreeze
SetEnv mod_linkfreeze
# enables mod_hotlink
SetEnv mod_hotlinkRelated articles and topics
Directives
| Name | Context | Description | 
|---|---|---|
| PassEnv | S V D .h | passes environment variables from the shell | 
| SetEnv | S V D .h | sets environment variables | 
| UnSetEnv | S V D .h | removes variables from the environment | 
PassEnv
   Actually,
   
    PassEnv
   
   directive is left for Apache compatibility
  and practically does not perform any actions. This happens because IIS, unlike
  Apache, automatically adds the list of
   
    w3wp
   
   process environment
  variables to the list of server variables.
  
Syntax
PassEnv env-variable [env-variable] ...Example
PassEnv LD_LIBRARY_PATHSetEnv
   
    SetEnv
   
   directive sets an environment variable that is then
  passed on to CGI scripts and SSI pages.
  
Syntax
SetEnv env-variable valueExample
SetEnv SPECIAL_PATH /foo/binUnsetEnv
   
    UnsetEnv
   
   directive removes one or more environment variables from those
  passed to CGI scripts and SSI pages.
  
Syntax
UnsetEnv env-variable [env-variable] ...Example
# disable gzip
UnsetEnv gzip