Well Tom, I'm using apache 2.0.50 under SuSE 9.2 pro and
just added the following to httpd.conf, after my LoadModule statements:
SetEnv ErrLogPath /var/log/apache2/error_log
ErrorLog ${ErrLogPath}
LogLevel debug
All this does for my setup is create an error_log file under
/srv/www/ called ${ErrLogPath}.
Am I missing something?
What version of Apache are you using?
Do you have any concrete examples of usage please?
Keith
In theory, theory and practice are the same;
In practice they are not.
On Wed, 18 Jan 2006, Tom Hoefakker wrote:
> To: [email protected]
> From: Tom Hoefakker <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Using environment variable in httpd.conf
>
> As far as I know, it's an undocumented "feature". But, in my experience,
> it does actually work quite well. While I vaguely recall a note on the
> development list questioning whether or not this should be removed, I
> would love to see this become a full-fledged documented feature as it is
> very useful in situations such as yours.
>
> In your httpd.conf file you can use environment variables like this:
> ${varname}
>
> In our environment, we use environment variables for quite a few things:
> ServerRoot
> Port
> DocumentRoot
> module paths - both bundled and custom modules
> User & group (different users in development vs. production)
> path to piped log program
> log file path
> etc...
>
> Hope this helps.
> Tom
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]