You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Andrew <an...@aaaaaaaa.demon.co.uk> on 1995/12/23 20:48:40 UTC
mod_env.c 0.0.4 uploaded...
...to hyperreal: /httpd/incoming/. mod_env.c now supports SetEnv
directive in addition to PassEnv. SetEnv has similar semantics as
UNIX shell setenv:
SetEnv FOO bar
sets $FOO to bar
SetEnv FOO
sets $FOO to the empty string
SetEnv FOO "some string or other"
values containing whitespace must be quoted
One use of this feature allows you to pass different sets of
environment variables to different virtual hosts. Note that the
presence of either PassEnv or SetEnv inside a VirtualHost section
causes the 'default' settings to be forgotten.
# srm.conf
# default
PassEnv SPECIAL_PATH WAIS_STUFF SPECIAL_LIB
<VirtualHost site.one>
DocumentRoot /virtual/site.one/pages
SetEnv SPECIAL_PATH "/virtual/site.one/bin"
SetEnv WAIS_STUFF "/virtual/site.one/wais"
</VirtualHost>
<VirtualHost site.two>
DocumentRoot /virtual/site.two/pages
SetEnv SPECIAL_LIB "/virtual/site.two/lib"
</VirtualHost>
Cheers,
Ay.