httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew <and...@aaaaaaaa.demon.co.uk>
Subject mod_env.c 0.0.4 uploaded...
Date Sat, 23 Dec 1995 19:48:40 GMT
...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.

Mime
View raw message