einhverfr has asked for the wisdom of the Perl Monks concerning the following question:

Hi;

I am trying to write some scaffolding to support moving LedgerSMB to Dancer. Unfortunately I have had very little success at first. I tried to use Dancer::Plugin::FakeCGI and got errors during the import process. Tracing these, it looks like the module does not work with recent versions of HTTP::Headers.

So I am wondering if this is even the right way to go about things. Should I try to run these perhaps as different PSGI apps under the same app.psgi and use work I have done to run the old cgi apps under Starman and FCGI instead? Is there another option I haven't thought of?

I am mostly looking for strategic help and a pointer in the right direction.

Replies are listed 'Best First'.
Re: CGI files and Dancer coexisting?
by Anonymous Monk on Aug 28, 2014 at 07:09 UTC
Re: CGI files and Dancer coexisting?
by locked_user sundialsvc4 (Abbot) on Aug 27, 2014 at 12:36 UTC

    You certainly could use (say ...) Apache <location> tags to redirect different URL (patterns) to different handlers.   One could go to Dancer, another to (Fast)CGI.   You probably would not want to do this sort of thing “permanently” (although I have seen stranger things than this in production applications ...), but you certainly could do it short-term during a transition plan.

      I was thinking for a standalone server, having both run under different roots with plack. Does that seem reasonable?
      A reply falls below the community's threshold of quality. You may see it by logging in.