[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] problem with setup running under mod_perl


My CGI::App code is supposed to be running under mod_perl via
Apache::Registry.

But the curious bit is that setup is being called on every http request.
 This is not what I expected -- I thought setup would be called once
for each copy of the script and that prerun would be called for each
request.  I verified that it's running every time by logging calls to setup.

Is my understanding right?  I'm running C::A version 2.4 (haven't gotten
around to the 3.0 update), but I can't imagine this basic behavior has
changed.


If so, I suspect I have a problem with my mod_perl setup, but I don't
see what it could be.  Is there a standard example of setting up C::A to
run under mod_perl?

For reference, below is the relevent bit from my httpd.conf.

Thanks,
--Mike Carlton <suppressed>



<VirtualHost *>
    ServerName  protech.repomanager.com

    DocumentRoot    /home/httpd/protechrecovery
    ServerAdmin     suppressed
    ErrorLog        logs/protechrecovery.error_log
    CustomLog       logs/protechrecovery.access_log combined

    RewriteEngine   On
    RewriteRule     ^/([^/.]+)$ /index.pl [E=mode:$1,L]

    <Directory "/home/httpd/protechrecovery">
        Options -Indexes Includes FollowSymLinks ExecCGI
        AllowOverride All
        DirectoryIndex index.pl index.html
    </Directory>

    # make all files with .pl suffix be handled by Apache::Registry
    <Files *.pl>
        SetHandler  perl-script
        PerlHandler Apache::Registry
        Options     +ExecCGI
        PerlSendHeader  On
    </Files>

</VirtualHost>




---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.