Wow thanks guys for all the input. Damn (oops not very monkish) I should have joined here years ago.

I am just learning the ins and outs of mod_perl so I followed the instructions of how to set it up

didn't even think of setting the individual script to a mod_perl script. just stuck to the paradigm of a directory


I'll try this solution

<Location /cgi-bin/mlserver.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Location>

its great because it also cuts out the rewrite requirement

Rewrite the script as an apache handler ... Great idea that would be much faster. I'll have to work out how to talk to mySQL from Apache but I am sure theres lots of info about that lying around.

Steve I already ruled out a "redirect" because the script is called thousands of times per hour and the client times out if there is no response within 5 seconds.

I can't afford the extra time and network activity a redirect introduces.

Great Answers guys I'm impressed :) And your probably saying "Doh".
I'll get there


In reply to Re^2: Seems simple enough how do I redirect old cgi scripts to mod perl? by ManagedLinks
in thread Seems simple enough how do I redirect old cgi scripts to mod perl? by ManagedLinks

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.