Greetings all,

I've inherited a webserver running approx 40 - 50 (mostly small) perl web applications, all using cgi.pm and served via Apache. We're in the process of upgrading our webservers and I thought this was a good time to look at moving away from cgi.pm.

I need to keep all the legacy stuff running under Apache, but I want to start writing new projects using a framework and plack. My question is what do people think is the best way to go about this?

My options:

1. Keep all the legacy applications running on one server and set up a new one for psgi apps - In an ideal world this would porbably be the best option but it may not go down well with sys admins:).

2. If I have to do it all on a single server is it possible to run everything through apache and proxy any psgi requests through to something like starman.

Lastly, how would I deploy multiple psgi apps (in a similar way to my current cgi scripts)? I've been looking at Plack::App::URLMap but is this the recommended way to do it, will it scale well if I end up with a lot of apps (max < 50).


In reply to Serving multiple Plack apps by soundX

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.