httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Wilson <and...@tees.elsevier.co.uk>
Subject mod_env.c...
Date Thu, 11 Jan 1996 11:38:13 GMT

... has been copied to www.apache.org/dist/contrib/modules.  The
module's been used for a while now by people converting from CERN to
Apache and the nth bug report of the week asking for this convinced me
to make it public.  From the module's header:

This module allows Apache's CGI and SSI environment to inherit
environment variables from the shell which invoked the httpd process.
CERN webservers are able to do this, so this module is especially
useful to webadmins who wish to migrate from CERN to Apache without
rewriting all their scripts
 
The module accepts two new directives, PassEnv and SetEnv both of which
may appear in configuration files, but not in .htaccess files.  The
directives may also appear inside VirtualHost sections so that a
different set of environment variables may be exported to each virtual
host.  You can add the following sorts of commands to your httpd.conf 
file.
 
     # The default server knows about SPECIAL_PATH
     PassEnv SPECIAL_PATH
 
     <VirtualHost host.foo.com>
     # .foo. needs additional special paths
     PassEnv LD_LIBRARY_PATH
     SetEnv FOO_PATH /virtual/foo/bin
     ...
     </VirtualHost>
 
     <VirtualHost host.bar.com>
     # .bar. overrides the default special path
     SetEnv SPECIAL_PATH /virtual/bar/bin
     ...
     </VirtualHost>


Cheers,
Ay.


Mime
View raw message