Re: FAQ 3.19 How can I make my CGI script more efficient?



Purl Gurl wrote:
I have a perl script located here,

c:/my/path/to/users/callgirl/roberta/roberta.cgi

My roberta software produces html, src links to graphics,
and employs a good number of databases and adjuncts.

My script alias for mod_perl is, in part,

ScriptAlias /perl-bin/ "perl-bin/"
<Location /perl-bin>

What directive would you, personally, add to my httpd.conf file
to run roberta.cgi via mod_perl?

Somehow I got the impression that you had studied the mod_perl docs. Anyway, I'm not Brian, but I'd try something along these lines (note: 'Alias' instead of 'ScriptAlias'):


    Alias /perl-bin/ "c:/my/path/to/users/callgirl/roberta"
    PerlRequire "c:/my/path/to/startup.pl"
    <Location /perl-bin>
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
        PerlOptions +ParseHeaders
        Options +ExecCGI
    </Location>

Given that, then call the script as

    http://my.domain.com/perl-bin/roberta.cgi

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.



Relevant Pages

  • Re: Question for Mike Williams... please need help
    ... database structures than with graphics, and I'm afraid that databases are ... parameter storage from the graphical angle. ... of INI file record. ...
    (microsoft.public.vb.general.discussion)
  • Re: Making a Networkable Application with VB6
    ... Most databases can store them, then you can use something like Access or VB6 ... with the Rich Text Control and a Picture control to ... What kind of database could store formatted text and graphics? ...
    (microsoft.public.vb.general.discussion)