httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo>
Subject Re: [users@httpd] SetEnv variables empty for mod_rewrite
Date Wed, 02 Jun 2004 06:04:59 GMT
* "James Taylor" <> wrote:

> I'm trying to set an environment variable from httpd.conf and access it
> from mod_rewrite statements, but I'm not having any luck.  If I use
> SetEnvIf instead it works fine.  Below is a sample where I'd expect
> MyVariable to be set to "foo", but if I examine the rewrite.log file,
> the variable is always empty.  I must be doing something wrong, because
> this seems so basic.  Thanks in advance for any help.

It's  a logical error. SetEnv directives will be evaluated just before the
handler starts, i.e. way too late for mod_rewrite.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message