LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Migrating from Apache

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 02-16-2006, 02:34 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lightspeed thru apache chrchcol Install/Configuration 2 11-01-2006 10:40 AM
Expected memory usage? subBlue Install/Configuration 4 10-20-2006 02:39 PM
Why LSWS slower than Apache 1.3 on my server ? dredy Apache Migration/Compatibility 1 02-22-2006 06:44 PM
403 forbiden error after migrating from apache mzagar Install/Configuration 1 02-01-2005 11:17 AM
Testimonial : LSWS as web app frontend instead of Apache bogus Feedback/Feature Requests 1 03-26-2004 10:32 AM


All times are GMT -7. The time now is 02:12 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.