Re: slightly OT - defining variables in httpd.conf for use in httpd.conf

[prev] [thread] [next] [Date index for 2005/04/07]

From: David Wright
Subject: Re: slightly OT - defining variables in httpd.conf for use in httpd.conf
Date: 14:07 on 07 Apr 2005
> 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

Re: slightly OT - defining variables in httpd.conf for use in httpd.conf
David Wright 14:07 on 07 Apr 2005

Generated at 14:43 on 11 Apr 2005 by mariachi v0.52