The following reply was made to PR mod_log-any/3205; it has been noted by GNATS.
From: Marc Slemko <[EMAIL PROTECTED]> To: Mark Nottingham <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: mod_log-any/3205: request for conditional in mod_log_config Date: Wed, 14 Oct 1998 14:50:38 -0700 (PDT) On 14 Oct 1998, Mark Nottingham wrote: > This isn't a bug report; it's a feature request. Apologies if this isn't the > best place to do it. > > I've looked through the docs for mod_log_config (as well as the source, > briefly) > and I don't see a way to make a log request conditional on anything but the > status. > > What I'm thinking is that it would be nice to either expand the conditions > to > include whether or not another log variable is available (e.g., an > environment > variable), and fall back to something else if not. > > The reason I ask is that it would be nice to replace the host string when > the environment variable X-FORWARDED-FOR is available, from proxy servers. I think it would be easier if you just logged to a pipe, then had the program you are logging to get a CustomLog with both the X-FORWARDED-FOR and the normal client, then use one or the other when it writes logs out depending. Or you could do this in a batch process after the fact.
