Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Fran Fabrizio
I am trying to make a portable mod_perl.conf. I have things like: Alias /cgi-bin/chimpkit/ /usr/local/apache/cgi-bin/chimpkit/ SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI PerlSendHeader On which really needs to become something like: Alias /cgi

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Steven Lembark
Yup. See the directive. Good description of how it works in the Eagle Book. -- Fran Fabrizio <[EMAIL PROTECTED]> > > I am trying to make a portable mod_perl.conf. I have things like: > > Alias /cgi-bin/chimpkit/ /usr/local/apache/cgi-bin/chimpkit/ > > SetHandler perl-script > Perl

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Fran Fabrizio
Yikes, I just found an example of the exact thing I needed in the cookbook (recipe 2.16). Sorry, and thanks! -Fran

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Fran Fabrizio
I spoke too soon. I need: push @Alias, [ qw(/cgi-bin/chimpkit/ $ENV{SERVER_ROOT}/cgi-bin/chimpkit/) ]; This does not appear to be possible because there's no way to pass in SERVER_ROOT to the apache startup. I have SERVER_ROOT getting set in root's .bashrc, but when I execute ./apachec

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Geoffrey Young
Fran Fabrizio wrote: > > I spoke too soon. > > I need: > > > push @Alias, [ qw(/cgi-bin/chimpkit/ > $ENV{SERVER_ROOT}/cgi-bin/chimpkit/) ]; > > > This does not appear to be possible because there's no way to pass in > SERVER_ROOT to the apache startup. I have SERVER_ROOT getting set

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-05-02 Thread Ken Williams
On Wednesday, May 1, 2002, at 05:04 AM, Fran Fabrizio wrote: > > I spoke too soon. > > I need: > > > push @Alias, [ qw(/cgi-bin/chimpkit/ $ENV{SERVER_ROOT}/cgi- > bin/chimpkit/) ]; > > > This does not appear to be possible because there's no way to > pass in SERVER_ROOT to the apache startu

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-05-03 Thread Fran Fabrizio
What I was really looking for was $r->server_root_relative. =) Thanks Geoff! That's to all for your help. -Fran > You'll also need to use a PerlPassEnv directive prior to your > block. > > For debug purposes, try adding the following inside your block: > > print join("\n", map { "$_ => $

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-05-05 Thread Jason Woodward
You'll also need to use a PerlPassEnv directive prior to your block. For debug purposes, try adding the following inside your block: print join("\n", map { "$_ => $ENV{$_}" } (keys %ENV)), "\n"; OR, my personal quick-debugging catch-all: use Data::Dumper; print Dumper \%ENV; You'll be able