in reply to REDIRECT_LD_LIBRARY_PATH variable?

I am not an apache guru, so the rules for precedence in redirection/aliasing/.htaccess processing are black magic to me. Are you sure that you were not already getting the 'REDIRECT_LD_LIBRARY_PATH' variable passed in before you added the SetEnv? Is the server configured to allow you to set environment variables in the .htaccess file?

Is the path actually fixed? If so, you could (ugh) hard-code it into your script...

Replies are listed 'Best First'.
Re^2: REDIRECT_LD_LIBRARY_PATH variable?
by locked_user sundialsvc4 (Abbot) on Mar 04, 2009 at 03:24 UTC

    Yeah, the directive is having an effect ... the value of the variable is whatever I set it to be, and otherwise the variable doesn't exist ... but the name is changed.

    Yes, you are absolutely correct that environment-variables can be set with $ENV{}, and that many desirable magickal effects happen when you do so within a BEGIN { } block, because of the (very early...) point in time when Perl considers such blocks. This is an apparently-valid, and therefore very-important, observation. Let us therefore recognize it, and let it stand.

    But my particular question in this post is... where and why does “REDIRECT_” come from? Why is the final name of the environment-variable not the name that I have attempted to set?

      I/m afraid you are in the wrong forum. Have you tried apachemonks.org? :) I believe you are the victim of some unintended consequence of your server's configuration of the mod_alias module. Are you allowed to request changes to the actual virtual server configuration you are using within Apache? Maybe setting at that level will cause it to pass thru unaltered?