Ian Hobson wrote:

> I also found that Webrick sets its tempdir (I think correctly) with the 
> line
> 
> :TempDir        => ENV['TMPDIR']||ENV['TMP']||ENV['TEMP']||'/tmp',
> 
> Can code using Apache do something similar? 

Set the environment variable for TMPDIR, TMP or TEMP, for your Ruby 
script to use? If so yes, use the SetEnv and PassEnv directives.

for apache 1.x.x

http://httpd.apache.org/docs/mod/mod_env.html#setenv
http://httpd.apache.org/docs/mod/mod_env.html#passenv

for apache 2.x.x (I dont' think the usage has changed since version 1.x.x)

http://httpd.apache.org/docs-2.0/mod/mod_env.html#setenv
http://httpd.apache.org/docs-2.0/mod/mod_env.html#passenv

Zach