You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2007/10/05 15:58:27 UTC
Re: mod_rewrite is working strangely while using mod_perl
Marco Bretschneider wrote:
> Hi,
>
> I reported a bug that seems to be related to mod_rewrite of apache.
> It turns out, that the problem only occurs while using mod_perl.
> Note, that everything else is working fine with mod_perl. Anyway I'm
> not quite sure where this bug belongs to (mod_perl or mod_rewrite). I
> was asked to report a bug to your list too. Please have a look at
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=43514
please explicitly add
+SetupEnv
to your PerlOptions under /folder
fwiw, I just added a test for this to the mod_perl svn sources - it's
not an .htaccess-based test but it does show env variables coming through.
for the most part, the env communication between mod_rewrite and anyone
else (mod_perl, mod_cgi, whomever) is pretty simple and clear -
mod_rewrite populates the subprocess_env table, then mod_cgi or mod_perl
calls a core apache API to populate %ENV at content-generation time.
so, I'd like you to try a few things...
first, please verify that this is not a problem with mod_cgi as well.
that is, take your same setup, but use
SetHandler cgi-script
for your test and see if the problem persists. if mod_cgi does the
right thing then I'll look into it further.
--Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: mod_rewrite is working strangely while using mod_perl
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> as a workaround, please try adding
>
> $r->subprocess_env();
>
> before you examine %ENV. it should force re-population of %ENV from the
> subprocess_env table, which is where mod_rewrite stashes it's stuff.
a few other things as well...
your provides is running mod_perl on win32? that's odd for a
provider... but please report back the version of mod_perl they are running.
also, if any of the win32 developers could give my new test a whirl,
that would be great. the odd thing about this is that the variable
itself is there but the value is undef - I would expect that it would
either be missing entirely or picked up properly...
--Geoff
Re: mod_rewrite is working strangely while using mod_perl
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> as a workaround, please try adding
>
> $r->subprocess_env();
>
> before you examine %ENV. it should force re-population of %ENV from the
> subprocess_env table, which is where mod_rewrite stashes it's stuff.
a few other things as well...
your provides is running mod_perl on win32? that's odd for a
provider... but please report back the version of mod_perl they are running.
also, if any of the win32 developers could give my new test a whirl,
that would be great. the odd thing about this is that the variable
itself is there but the value is undef - I would expect that it would
either be missing entirely or picked up properly...
--Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: mod_rewrite is working strangely while using mod_perl
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
Marco Bretschneider wrote:
> Hi again,
>
>> please explicitly add
>>
>> +SetupEnv
>>
>> to your PerlOptions under /folder
>
> added this option - same effect.
>
>> so, I'd like you to try a few things...
>>
>> first, please verify that this is not a problem with mod_cgi as well.
>> that is, take your same setup, but use
>>
>> SetHandler cgi-script
>>
>> for your test and see if the problem persists. if mod_cgi does the
>> right thing then I'll look into it further.
>
> it turns out, that we do not have this problem using mod_cgi. So, I guess it's worth to have a closer look at it ;-)
as a workaround, please try adding
$r->subprocess_env();
before you examine %ENV. it should force re-population of %ENV from the
subprocess_env table, which is where mod_rewrite stashes it's stuff.
--Geoff
Re: mod_rewrite is working strangely while using mod_perl
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
Marco Bretschneider wrote:
> Hi again,
>
>> please explicitly add
>>
>> +SetupEnv
>>
>> to your PerlOptions under /folder
>
> added this option - same effect.
>
>> so, I'd like you to try a few things...
>>
>> first, please verify that this is not a problem with mod_cgi as well.
>> that is, take your same setup, but use
>>
>> SetHandler cgi-script
>>
>> for your test and see if the problem persists. if mod_cgi does the
>> right thing then I'll look into it further.
>
> it turns out, that we do not have this problem using mod_cgi. So, I guess it's worth to have a closer look at it ;-)
as a workaround, please try adding
$r->subprocess_env();
before you examine %ENV. it should force re-population of %ENV from the
subprocess_env table, which is where mod_rewrite stashes it's stuff.
--Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: mod_rewrite is working strangely while using mod_perl
Posted by Marco Bretschneider <Ma...@gmx.de>.
Hi again,
> please explicitly add
>
> +SetupEnv
>
> to your PerlOptions under /folder
added this option - same effect.
> so, I'd like you to try a few things...
>
> first, please verify that this is not a problem with mod_cgi as well.
> that is, take your same setup, but use
>
> SetHandler cgi-script
>
> for your test and see if the problem persists. if mod_cgi does the
> right thing then I'll look into it further.
it turns out, that we do not have this problem using mod_cgi. So, I guess it's worth to have a closer look at it ;-)
Greetings,
Marco.
--
Marco Bretschneider
Genslerstraße 38
22307 Hamburg
040/61198860
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger