[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SetEnv [was Re: [Modcaml] "Printer"?]
From: |
Robert Fischer |
Subject: |
SetEnv [was Re: [Modcaml] "Printer"?] |
Date: |
Sat, 03 May 2008 08:12:14 -0500 |
User-agent: |
Thunderbird 2.0.0.14 (Macintosh/20080421) |
I thought SetEnv was supposed to set environment variables. This silly
idea probably came from the documentation, which says "Sets an
environment variable, which is then passed on to CGI scripts and SSI
pages." Why doesn't it do that?
Is the problem that it sets the environment for CGI/SSI, but not for
subsequent configuration directives?
~~ Robert.
Richard Jones wrote:
> On Fri, May 02, 2008 at 06:16:27PM -0500, Robert Fischer wrote:
>> Is there a trick to getting the PG* environment variables passed into
>> Apache 1.3, or some other log-in gotcha? I've tried SetEnv (in both
>> httpd.conf and cocanwiki.conf) and exporting the PG* env variables in
>> the apachectl script, and I'm still getting the connect failure.
>
> Yes, SetEnv doesn't work -- no idea what exactly it's supposed to be
> useful for. Mod_perl defined "PerlSetEnv" which does the right thing,
> but we don't have that in mod_caml.
>
> I also had a small war with the Debian apache maintainer about his
> insistence of "cleaning" the environment before running apache. He
> puts 'env -i ...' in the /etc/init.d/apache script.
>
> The way to do it is to edit the /etc/init.d/apache script to add your
> own environment variables and to remove the '-i' from 'env'.
>
> Rich.
>
- [Modcaml] Re: "apache.cma"?, (continued)
- [Modcaml] Re: "apache.cma"?, Richard Jones, 2008/05/01
- Re: [Modcaml] Re: "apache.cma"?, Robert Fischer, 2008/05/02
- Re: [Modcaml] Re: "apache.cma"?, Robert Fischer, 2008/05/02
- Re: [Modcaml] Re: "apache.cma"?, Richard Jones, 2008/05/02
- [Modcaml] "Printer"?, Robert Fischer, 2008/05/02
- Re: [Modcaml] "Printer"?, Robert Fischer, 2008/05/02
- Re: [Modcaml] "Printer"?, Robert Fischer, 2008/05/02
- Re: [Modcaml] "Printer"?, Robert Fischer, 2008/05/02
- Re: [Modcaml] "Printer"?, Richard Jones, 2008/05/03
- Re: [Modcaml] "Printer"?, Richard Jones, 2008/05/03
- SetEnv [was Re: [Modcaml] "Printer"?],
Robert Fischer <=
- Re: SetEnv [was Re: [Modcaml] "Printer"?], Richard Jones, 2008/05/03
- [Modcaml] Re: "Printer"?, Richard Jones, 2008/05/16