View Single Post
  #1  
Old 02-16-2006, 02:24 PM
athanasius athanasius is offline
New Member
 
Join Date: Feb 2006
Posts: 9
Default Migrating from Apache

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();

}
Reply With Quote