Migrating from Apache

Discussion in 'Apache Migration/Compatibility' started by athanasius, Feb 16, 2006.

  1. athanasius

    athanasius New Member

    With the following config under Apache, ALL files ending in pl (or under the directory /pl/pages) are "dynamic" fastcgi apps:

    ---- except from httpd.conf ---

    AddHandler fastcgi-script .pl

    <Directory /home/some-user/www/pl>
    SetHandler fastcgi-script
    </Directory>

    ---

    How can / should this be configured under Lite Speed? I understand how to map an external app into the web root by specifying a command.

    However, we just want anything that ends in 'pl' to be treated as a dynamic app (e.g. started on demand) I saw something about lsws/fcgi-bin/lsperld.fpl and tried that, but the following script does not work:

    ---- test script ---
    #!/usr/bin/perl

    use strict;

    use CGI::Fast;
    use HTTP::Response();

    while (my $q = CGI::Fast->new()) {

    my $r = HTTP::Response->new(200);
    $r->content_type("text/html");

    $r->content("<h1>Hello World</h1>");
    print $r->headers()->as_string() . "\n" . $r->content();

    }
  2. mistwang

    mistwang LiteSpeed Staff

    You have to configure those fast CGI application one by one with litespeed. And I think it is a good idea to combine multiple FCGI apps to one, single entrance is a good idea for FCGI applications.

Share This Page