You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Kenny Smith <ke...@journalscape.com> on 2001/09/09 23:03:55 UTC

mod_rewrite + mod_perl

Hello all,

For the first part of my project, I'm just using mod_perl as a replacement
for CGI. I'm trying to execute a mod_perl script via mod_rewrite, but it
doesn't seem to be persisting.

In my httpd.conf, I've got:

  <Files *.mod_perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    PerlSendHeader On
    Options ExecCGI
  </Files>

...

    RewriteRule ^/([^/^.]+)/?$ /path/show_journal.mod_perl
 [T=application/x-httpd-cgi,E=NICKNAME:$1,L]

The above is used to catch the following URL:

http://www.journalscape.com/kenny/

The nickname 'kenny' is captured from the url and sent to the script via an
environment variable.

It executes show_journal.mod_perl perfectly well, but the script does not
remain resident in memory. Do I need to call it differently? Any help is
appreciated. :)

Kenny Smith
kenny@journalscape.com


Re: mod_rewrite + mod_perl

Posted by Vivek Khera <kh...@kcilink.com>.
>>>>> "KS" == Kenny Smith <ke...@journalscape.com> writes:

KS> It executes show_journal.mod_perl perfectly well, but the script does not
KS> remain resident in memory. Do I need to call it differently? Any help is
KS> appreciated. :)

What evidence do you have to say it doesn't remain resident?


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/