RE: slightly OT - defining variables in httpd.conf for use in httpd.conf
[prev]
[thread]
[next]
[Date index for 2005/04/07]
We set them in Section 2 of the httpd.conf after the DocumentRoot like =
this:
SetEnv ORACLE_HOME "/opt/home/oracle/product/8.1.7"
-Jon Reed
-----Original Message-----
From: David Wright [mailto:dave@xxxx.xxx]
Sent: Thursday, April 07, 2005 10:08 AM
To: modperl
Subject: Re: slightly OT - defining variables in httpd.conf for use in
httpd.conf
> I know I've seen this done before, but I'd like to
> define a variable at the top of my httpd.conf file,
> and then use it many times throughout the conf file...
>
> e.g.
>
> define Server=3D'fred'
>
> DocumentRoot /usr/local/${server}
>
> I just can't find any info on this... Can anybopdy
> point me at the right place..
mod_macro or mod_define look like they might be useful to you:
http://www.cri.ensmp.fr/~coelho/mod_macro/
http://www.lpi.msk.su/mod/mod_define.html
cheers,
dave
 |
 |
RE: slightly OT - defining variables in httpd.conf for use in httpd.conf
Reed, Jonathan 14:14 on 07 Apr 2005
|