httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From htt...@karsites.net
Subject Re: [users@httpd] Using environment variable in httpd.conf
Date Thu, 19 Jan 2006 08:06:46 GMT

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: users@httpd.apache.org
> From: Tom Hoefakker <twh@iw.net>
> Subject: Re: [users@httpd] 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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message