You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Gunnar Koppel <gu...@raamatukoi.ee> on 2005/08/17 13:53:10 UTC

[mp2] wrong gateway interface

I can't find a flaw in my conf. I am trying to conf some location act 
under PerlRun or Registry, but my test-script prints in %ENV still:

GATEWAY_INTERFACE: CGI/1.1

I added in apache2.conf such lines:
___
Alias /adm /home/xyz/adm
Alias /adm2 /home/xyz/adm

<Location /adm>
         SetHandler perl-script
         PerlHandler ModPerl::PerlRun
         Options +ExecCGI
         PerlSendHeader On
         AllowOverride All
</Location>

<Location /adm2>
         SetHandler perl-script
         PerlHandler ModPerl::Registry
         Options +ExecCGI
         PerlSendHeader On
         AllowOverride All
</Location>
___

But in both Location my gateway is CGI/1.1. Other important variables in 
ENV:

MOD_PERL: mod_perl/2.0.1
MOD_PERL_API_VERSION: 2
SERVER_SIGNATURE:
Apache/2.0.54 (Debian GNU/Linux) mod_apreq2-20050712/2.1.3-dev 
mod_perl/2.0.1 Perl/v5.8.7 Server at localhost Port 80
SERVER_SOFTWARE: Apache/2.0.54 (Debian GNU/Linux) 
mod_apreq2-20050712/2.1.3-dev mod_perl/2.0.1 Perl/v5.8.7


What didn't i notice here?

-- 
TIA,
Tänud ette,

Gunnar Koppel

Re: [mp2] wrong gateway interface

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Gunnar Koppel wrote:
> 
> I can't find a flaw in my conf. I am trying to conf some location act
> under PerlRun or Registry, but my test-script prints in %ENV still:
> 
> GATEWAY_INTERFACE: CGI/1.1

this is no longer the place to look in mp2

> MOD_PERL: mod_perl/2.0.1

look here instead :)

--Geoff