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
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
Yikes, I just found an example of the exact thing I needed in the
cookbook (recipe 2.16). Sorry, and thanks!
-Fran
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
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
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
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 { "$_ => $
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