You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Rajeev Rajan <rr...@qualcomm.com> on 2003/12/05 03:25:18 UTC
[users@httpd] Our own variables in httpd.conf
Is it possible to create and use our own variables in the httpd.conf ?
i.e. I wish to create a variable say, myIPAddr, which I can set in the
httpd.conf file in the beginning....and in other constructs like
NameVirtualHost, <VirtualHost ..> etc, I can reference it.
Otherwise, if my machine migrates to another network, and gets a new IP, I
need to do a find and replace with the new IP address in the entire httpd.conf.
Thanks in advance,
Rajeev
---------------------------------------------------------------------
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
Re: [users@httpd] Our own variables in httpd.conf
Posted by Jez Hancock <je...@munk.nu>.
On Thu, Dec 04, 2003 at 06:25:18PM -0800, Rajeev Rajan wrote:
> Is it possible to create and use our own variables in the httpd.conf ?
Not natively afaik, although I believe you can use perl in your apache
config files if you have mod_perl loaded. See the mod_perl site for
more info:
http://perl.apache.org/
There's also a module called 'mod_macro' that allows you to define
macros and then use them throughout the configuration file. The only
link I have to mod_macro is:
http://www.coelho.net/mod_macro/
PS When you post a new topic, please don't reply to an old post - it
messes up the threading :P
--
Jez Hancock
- System Administrator / PHP Developer
http://munk.nu/
---------------------------------------------------------------------
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