httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Bray" <>
Subject Re: [users@httpd] How to read environmental variables from httpd.conf files
Date Thu, 31 May 2007 09:54:28 GMT
On 31/05/07,
<> wrote:
> Pardon me if this is a silly question.But i have started using apache just
> now.I have set an environmental variable in httpd.conf in httpd.conf using
> SetEnv.
> I want to read this variable in a program.I understoo that we cannot read
> using request_rec structure.Is there any apache api to read environmental
> variable set in httpd.conf?

That depends on the nature of the program. If it's an apache module,
see r->subprocess_env (where r is a request_rec). If it's a cgi
script, just read the environment variables as normal. If a php
script, see $_ENV.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message