w3-tools.com - Free Webmaster Tools and Resources
 
w3-tools.com - Free Webmaster Tools and Resources
 Free Webmaster Tools and Resources

 



Apache Manual

This manual is provided as a courtesy. It is not an official source. Please check apache.org for updated information.

PHP Manual

PHP Manual

[APACHE DOCUMENTATION]

Apache HTTP Server Version 1.3

Apache module mod_env

This module provides for modifying the environment which is passed to CGI scripts and SSI pages.

Status: Base
Source File: mod_env.c
Module Identifier: env_module
Compatibility: Available in Apache 1.1 and later.

Summary

This module allows for control of the environment that will be provided to CGI scripts and SSI pages. Environment variables may be passed from the shell which invoked the httpd process. Alternatively, environment variables may be set or unset within the configuration process.

For additional information, we provide a document on Environment Variables in Apache.

Directives


PassEnv directive

Syntax: PassEnv env-variable [env-variable] ...
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Base
Module: mod_env
Compatibility: PassEnv is only available in Apache 1.1 and later. Directory and .htaccess context is available in Apache 1.3.7 and later.

Specifies one or more environment variables to pass to CGI scripts and SSI pages from the environment of the shell which invoked the httpd process. Example:

    PassEnv LD_LIBRARY_PATH

SetEnv directive

Syntax: SetEnv env-variable value
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Base
Module: mod_env
Compatibility: SetEnv is only available in Apache 1.1 and later. Directory and .htaccess context is available in Apache 1.3.7 and later.

Sets an environment variable, which is then passed on to CGI scripts and SSI pages. Example:

    SetEnv SPECIAL_PATH /foo/bin

UnsetEnv directive

Syntax: UnsetEnv env-variable [env-variable] ...
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Base
Module: mod_env
Compatibility: UnsetEnv is only available in Apache 1.1 and later. Directory and .htaccess context is available in Apache 1.3.7 and later.

Removes one or more environment variables from those passed on to CGI scripts and SSI pages. Example:

    UnsetEnv LD_LIBRARY_PATH

Apache HTTP Server Version 1.3

Index Home

Newsletter

Join to our newsletter and receive news and updates about our site.
Your name: 
E-mail address: 
Action: 
 

Hosted by

Search

Google
Web w3-tools.com

Links

  What is my IP? Find your IP address!     Valid XHTML 1.0 Transitional  
Copyright © 2006. by w3-tools.com. All rights reserved