[CentOS] apache env vars - best practices

aurfalien at gmail.com aurfalien at gmail.com
Mon Oct 19 19:10:03 UTC 2009

Hi Nate,

We have our internal server running scripts and referencing variables  
in custom paths.

So for example;

Some one runs a Python script of http://intranet/batch

The batch.py references some variables defined in certain paths.

I need a good way of defining a path with multiple vars like FOO=/foo:/ 
bar... etc...

I'm not having too much luck with setting vars in /etc/sysconfig/httpd  

On Oct 19, 2009, at 10:58 AM, nate wrote:

> aurfalien at gmail.com wrote:
>> What's the cleanest way to set complex env vars for Apache?
> What are you needing to set such variables for? I've run apache
> for probably nearly 15 years now, doing many different types of
> things but never have I had to set complex environment
> variables.
> Have you tried sourcing the variables from the init script?
> One way may be to put the variables in /etc/sysconfig/httpd
> Perhaps there is a better way to do what you want without
> needing such environment variables.
> nate
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

More information about the CentOS mailing list