You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by somya sheel <ss...@cisco.com> on 2002/04/22 12:31:49 UTC
Accessing System Environment Variables in httpd.conf file
Hi,
I am running apache && tomcat on my Win2K server and both are running fine.
The way I have included my tomcat configuration file in httpd.conf is -->
...............
...............
Include C:\tomcat\conf\tomcat-apache.conf
...............
...............
However I do NOT want to give the absolute path for tomcat-apache.conf file
.
I have a system environment variable TOMCAT_HOME which is set to "C:\Tomcat"
I want to re-use this environment variable while specifying the path for the
file "tomcat-apache.conf"
So, the include directove should look something like -->
Include <TOMCAT_HOME>\conf\tomcat-apache.conf
But the above syntax is not working for me.
IS THERE A WAY BY WHICH I CAN ACCESS THE SYSTEM VARIABLES LIKE "TOMCAT_HOME"
IN MY httpd.conf ??
Any input would be greatly welcome ..
Thanks,
Somya
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
RE: Accessing System Environment Variables in httpd.conf file
Posted by somya sheel <ss...@cisco.com>.
Thanks ....
-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Monday, April 22, 2002 7:54 PM
To: users@httpd.apache.org
Subject: Re: Accessing System Environment Variables in httpd.conf file
somya sheel wrote:
> IS THERE A WAY BY WHICH I CAN ACCESS THE SYSTEM VARIABLES LIKE
"TOMCAT_HOME"
> IN MY httpd.conf ??
Sure. Preprocess you httpd.conf before launching apache and replace
instances of TOMCAT_HOME with `echo $TOMCAT_HOME`.
No, you can't do this internally in Apache. httpd.conf is a
configuration file, not a programming language. Use a preprocessor if
you want to do something fancy.
Joshua.
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
Re: Accessing System Environment Variables in httpd.conf file
Posted by Joshua Slive <jo...@slive.ca>.
somya sheel wrote:
> IS THERE A WAY BY WHICH I CAN ACCESS THE SYSTEM VARIABLES LIKE "TOMCAT_HOME"
> IN MY httpd.conf ??
Sure. Preprocess you httpd.conf before launching apache and replace
instances of TOMCAT_HOME with `echo $TOMCAT_HOME`.
No, you can't do this internally in Apache. httpd.conf is a
configuration file, not a programming language. Use a preprocessor if
you want to do something fancy.
Joshua.
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org