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:[EMAIL PROTECTED]
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='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

Reply via email to