Unless you have a high traffic site, running mod_proxy works wonders. I don't know if it's feasible given your setup -- you can't restart the server to load the mod_proxy DSO -- but maybe they'll restart it for you. Or maybe it's already available.

In a nutshell, you setup a pass-through on the server that's running now. It takes (all or some) requests on port 80 and passes them through to IP x port y. That process does what it needs to do then passes back the information to the proxy server, which passes it back to the client.

The positives of this are that the backend can be anything on any port. Your statically-compiled mod_perl can run on 127.0.0.1:8001 with no problems since the port < 1024, and running on localhost is smart so nobody can get to it except through the proxy.

The downsides are efficiency and complexity, although setting up mod_proxy is easy.

This sort of setup is used often in the mod_perl world, but usually to save resources since the front-end servers can be lightweight (images, static files, etc.) and can save the interesting work for the heavyweight mod_perl servers. The mod_perl guide has more info about how to do this, along with discussion of other issues involved (headers, etc.)

Chris
M-x auto-bs-mode


In reply to Re: Perl/mod_perl on shared web servers by lachoy
in thread Perl/mod_perl on shared web servers by trs80

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.