On Mon, Jun 05, 2000 at 10:49:24PM -0400, Steve Sobol wrote:
[SNIP]
> 
> But it's not doing that - there are a whole bunch of environment 
> variables that should be passed from mod_ssl to my php script that
> aren't. For example, my script is trying to read SSL_CIPHER_USEKEYSIZE
> to find the value of X. That variable is not defined.
[SNIP]

There is a default setting in mod_ssl:

<Files ~ "\.(cgi|shtml)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/httpd/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>

Default for the rest of the server is that StdEnvVars are _not_ set -
from the mod_ssl docs:
"StdEnvVars 

When this option is enabled, the standard set of SSL related CGI/SSI environment
variables are created. This per default is disabled for performance reasons,
because the information extraction step is a rather expensive operation. So one
usually enables this option for CGI and SSI requests only."

To make it work for you - just make sure that StdEnvVars is set for the script(s)
that need it.

vh

Mads Toftum
-- 
`Darn it, who spiked my coffee with water?!' - lwall

______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to