Re: [CentOS] apache env vars - best practices

2009-10-19 Thread aurfalien
>> Hi Les, >> >> What I mean is that if I use the Apache directive; >> >> SetEnv BATCHPATH /foo >> >> It works. >> >> If I set; >> >> SetEnv BATCHPATH /foo:/bar >> >> Apache errors with a syntax that SetEnv takes 2 args only, a key >> and a >> value. >> >> I need multiple values for 1 key, as one

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread Bowie Bailey
aurfal...@gmail.com wrote: > Hi Les, > > What I mean is that if I use the Apache directive; > > SetEnv BATCHPATH /foo > > It works. > > If I set; > > SetEnv BATCHPATH /foo:/bar > > Apache errors with a syntax that SetEnv takes 2 args only, a key and a > value. > > I need multiple values for 1 key

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread Jeff
On Mon, Oct 19, 2009 at 12:49 PM, wrote: > I've been setting custom env vars for Apache 1 of 2 ways; > > 1 - Changing the passwd file so Apache has a shell and loading a > custom .bashrc file. > > 2 - Using the SetEnv directive in my httpd.conf file. > > I'm crazy about neither one as they both h

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread aurfalien
>> Hi Les, >> >> What I mean is that if I use the Apache directive; >> >> SetEnv BATCHPATH /foo >> >> It works. >> >> If I set; >> >> SetEnv BATCHPATH /foo:/bar >> >> Apache errors with a syntax that SetEnv takes 2 args only, a key >> and a >> value. >> > You have something unique going there? Y

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread nate
aurfal...@gmail.com wrote: > Hi Nate, > > These scripts are called by the user in a standard env and would > prefer it to stay un modified when running via Apache. How about a wrapper script then? The wrapper could set the vars and then call the unmodified script nate __

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread Les Mikesell
aurfal...@gmail.com wrote: > Hi Les, > > What I mean is that if I use the Apache directive; > > SetEnv BATCHPATH /foo > > It works. > > If I set; > > SetEnv BATCHPATH /foo:/bar > > Apache errors with a syntax that SetEnv takes 2 args only, a key and a > value. Doesn't happen here. If I pa

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread aurfalien
Hi Nate, These scripts are called by the user in a standard env and would prefer it to stay un modified when running via Apache. On Oct 19, 2009, at 11:17 AM, nate wrote: > aurfal...@gmail.com wrote: >> Hi Nate, >> >> We have our internal server running scripts and referencing variables >> in

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread Alan Sparks
aurfal...@gmail.com wrote: > Hi Les, > > What I mean is that if I use the Apache directive; > > SetEnv BATCHPATH /foo > > It works. > > If I set; > > SetEnv BATCHPATH /foo:/bar > > Apache errors with a syntax that SetEnv takes 2 args only, a key and a > value. > Doesn't for me on stock Apache

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread nate
aurfal...@gmail.com wrote: > 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 wa

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread aurfalien
Hi Les, What I mean is that if I use the Apache directive; SetEnv BATCHPATH /foo It works. If I set; SetEnv BATCHPATH /foo:/bar Apache errors with a syntax that SetEnv takes 2 args only, a key and a value. I need multiple values for 1 key, as one would see in a standard mix env. Any ide

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread Les Mikesell
aurfal...@gmail.com wrote: > I've been setting custom env vars for Apache 1 of 2 ways; > > 1 - Changing the passwd file so Apache has a shell and loading a > custom .bashrc file. > > 2 - Using the SetEnv directive in my httpd.conf file. > > I'm crazy about neither one as they both have limitat

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread aurfalien
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

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread nate
aurfal...@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 trie

[CentOS] apache env vars - best practices

2009-10-19 Thread aurfalien
I've been setting custom env vars for Apache 1 of 2 ways; 1 - Changing the passwd file so Apache has a shell and loading a custom .bashrc file. 2 - Using the SetEnv directive in my httpd.conf file. I'm crazy about neither one as they both have limitations; 1 - I don't like giving Apache its o