httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Dessent <br...@dessent.net>
Subject Re: [users@httpd] Apache Conf: SetEnv: Using a variable in a value setting
Date Tue, 19 Aug 2003 22:35:32 GMT
Jeff Nokes wrote:

>  Trying to keep everyone's configuration uniform has been a challenge, but I
> would like to try and have a few ENVs based off of a base path setting.  For
> instance, I would like the following ENVs available from within our mod_perl
> scripts:
> 
> CONTENT_ROOT=/home/jnokes/dev/row/content
> IMAGE_ROOT=/home/jnokes/dev/row/images
> ... so forth
> 
> But instead of hard-coding the path in a bunch of SetEnv directives, I was
> hoping I could do something like the following:
>   SetEnv  ROW_ROOT      /home/jnokes/dev/row
>   SetEnv  CONTENT_ROOT  $ROW_ROOT/content
>   ... so forth

How about using a preprocessor (such as GNU m4) on the httpd.conf?  You
could make all your edits to httpd.conf.m4, then "compile" it to
httpd.conf and issue a "apachectl restart" whenever you need to make a
change.

Brian

---------------------------------------------------------------------
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