Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Disabling TransHandler

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


stathy.touloumis at edisonaffiliates

Feb 6, 2003, 12:55 PM

Post #1 of 4 (544 views)
Permalink
Disabling TransHandler

Our sysadmin was attempting to disable a TransHandler for a virtual host
using a directive that he used in the past. I wasn't aware of such a
directive and was further stumped when I saw it :

PerlSetVar authsession false

He does not remember where he got this from but it seems to work. Any
ideas as to why this would disable a TransHandler? Where does it come from
and what mod_perl code uses it?

The only TransHandler on this site makes no references to using any
configuration variables set this way.

Thanks,


stas at stason

Feb 6, 2003, 3:55 PM

Post #2 of 4 (504 views)
Permalink
Re: Disabling TransHandler [In reply to]

Stathy G. Touloumis wrote:
> Our sysadmin was attempting to disable a TransHandler for a virtual host
> using a directive that he used in the past. I wasn't aware of such a
> directive and was further stumped when I saw it :
>
> PerlSetVar authsession false
>
> He does not remember where he got this from but it seems to work. Any
> ideas as to why this would disable a TransHandler? Where does it come
> from and what mod_perl code uses it?
>
> The only TransHandler on this site makes no references to using any
> configuration variables set this way.

I suppose you had PerlPostReadRequestHandler which was doing:

my $auth = $r->dir_config('authsession');
$r->set_handlers(PerlTransHandler => sub { return OK })
if $auth eq 'false';

this is not a magic internal feature ;)

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas [at] stason http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


stathy.touloumis at edisonaffiliates

Feb 6, 2003, 4:36 PM

Post #3 of 4 (520 views)
Permalink
Re: Disabling TransHandler [In reply to]

>>Our sysadmin was attempting to disable a TransHandler for a virtual host
>>using a directive that he used in the past. I wasn't aware of such a
>>directive and was further stumped when I saw it :
>>PerlSetVar authsession false
>>He does not remember where he got this from but it seems to work. Any
>>ideas as to why this would disable a TransHandler? Where does it come
>>from and what mod_perl code uses it?
>>The only TransHandler on this site makes no references to using any
>>configuration variables set this way.
>
>I suppose you had PerlPostReadRequestHandler which was doing:
>
>my $auth = $r->dir_config('authsession');
>$r->set_handlers(PerlTransHandler => sub { return OK })
> if $auth eq 'false';
>
>this is not a magic internal feature ;)

Nope, I wrote every handler being used on the system and there is nothing
that uses the 'authsession' directive/variable.


stathy.touloumis at edisonaffiliates

Feb 11, 2003, 9:46 AM

Post #4 of 4 (513 views)
Permalink
Re: Disabling TransHandler [In reply to]

>>>Our sysadmin was attempting to disable a TransHandler for a virtual host
>>>using a directive that he used in the past. I wasn't aware of such a
>>>directive and was further stumped when I saw it :
>>>PerlSetVar authsession false
>>>He does not remember where he got this from but it seems to work. Any
>>>ideas as to why this would disable a TransHandler? Where does it come
>>>from and what mod_perl code uses it?
>>>The only TransHandler on this site makes no references to using any
>>>configuration variables set this way.
>>
>>I suppose you had PerlPostReadRequestHandler which was doing:
>>
>>my $auth = $r->dir_config('authsession');
>>$r->set_handlers(PerlTransHandler => sub { return OK })
>> if $auth eq 'false';
>>
>>this is not a magic internal feature ;)
>
>Nope, I wrote every handler being used on the system and there is nothing
>that uses the 'authsession' directive/variable.

It turns out this variable did nothing ... the trans handler took care of a
simple redirect under certain circumstances which the sys-admin wanted to
avoid. It turns out that some time ago he put an html file containing a
redirect that pointed to where he wanted which the trans handler redirected
to! He just forgot he did this and assumed that the PerlSetVar directive
was what prevented the trans handler from functioning ...

Thanks for the response : )

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.