4

I have a lot of CGI web applications under apache2, which have complex jQueryUI powered interfaces and corresponding perl backend, based upon CGI::Application framework.

For user it looks like this:

  1. //localsrv.lan/some_report_xls
  2. //localsrv.lan/some_insert_db
  3. //localsrv.lan/some_perl_plsql_stuff etc...

Now I want to turn those apps psgi, which is easy, and somehow run those under Apache->ProxyPass/Starman

  • Should I run Starman for every app using lots of ports for all of them?
  • Should I somehow use mapping url with Plack::App::URLMap and how?
  • Should I create one single app out of all those hundreds to run it with Starman
  • Is there another way to do it?
serenesat
  • 4,611
  • 10
  • 37
  • 53
tercoz
  • 81
  • 6
  • 5
    I would use `Plack::App::URLMap` (or [`Plack::Builder`](https://metacpan.org/pod/Plack::Builder#URLMap-support), which uses `Plack::App::URLMap` under the hood) to mount each of your apps to a separate URL. Then you can run that single PSGI app with Starman, and requests to the different URLs will be handled by your various apps. – ThisSuitIsBlackNot May 21 '15 at 14:18
  • Thanks alot. I will follow your advice. – tercoz May 25 '15 at 13:24

0 Answers0