Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Mod_perl Handler

by clinton (Priest)
on Jul 15, 2008 at 16:24 UTC ( #697753=note: print w/ replies, xml ) Need Help??


in reply to Mod_perl Handler

It depends how you've set up your handlers, but it sounds to me like your handler which checks the cookie should be returning DECLINED, not OK. OK means that the request is finished. DECLINED signals to apache that it should pass the request on to the next handler.

See the mod_perl docs for more


Comment on Re: Mod_perl Handler
Select or Download Code
Re^2: Mod_perl Handler
by Anonymous Monk on Jul 17, 2008 at 16:20 UTC
    Yes , but it doest pass to next handler

    I have python cgi scripts along with mod_perl handler

    after mod_perl handler the control is not passed to mod_cgi

    any help?

      You haven't provided any details about how you've configured Apache, but I'm guessing that you're trying to use both mod_cgi and mod_perl for the PerlResponseHandler, and I don't think that will work.

      If you're using the mod_perl handler to check the cookie, why not put it into a separate phase, such as PerlAccessHandler. See the HTTP Handler docs for details.

        Alias /borg /home/vijay/src/atd/borg/html <Directory /home/vijay/src/atd/borg/html> Options +Includes +Indexes +FollowSymlinks XBitHack on Order allow,deny Allow from all DirectoryIndex index.htm index.html index.php </Directory> <Directory "/home/vijay/src/atd/borg/html/cgi-bin"> Options +ExecCGI +Includes +Indexes +FollowSymlinks XBitHack on Order allow,deny SetHandler cgi-script Allow from all </Directory> PerlModule Apache::GateKeeper <Location /borg> SetHandler perl-script PerlAccessHandler Apache::GateKeeper </Location> sub handler { my $r = shift; $r->subprocess_env(); my %cookies = fetch CGI::Cookie; loger(\%cookies); if (!defined($cookies{'U'})) { $r->headers_out->set( Location => 'https://login.iavian.com/lo +gin.php'); return Apache2::Const::REDIRECT; } return Apache2::Const::DECLINED; }
        Still cgi-scripts are not being executed , please help me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://697753]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-12-29 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls