Using lighttpd, Perl, CGI::Fast and CGI::Ajax

Warren Toomey <wkt-G2kne9RB/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi all, I am having difficulties with a combination of tools (lighttpd web
server, Perl, FastCGI with the CGI::Fast module, and the CGI::Ajax module).
At present, I can't pinpoint the cause of the problem, so I'm looking for
any ideas, or other people who might have tried to use the same tool
combination.

I've got lighttpd configured to do Fast CGI. It starts up a standalone
Perl script executer, the code of which is written by Alex Shah and is
on this page: http://trac.lighttpd.net/trac/wiki/ApplicationsUsingLighttpd
This executes my normal Perl CGI scripts fine, but fails when I try to
use a Perl CGI script that uses the CGI::Ajax module.

The CGI::Ajax module constructs some Javascript code which is sent to the
web client, and in the Javascript code there is the URL of the CGI script
(e.g. z.pl). However, when invoked as a Fast CGI script via Alex's
dispatcher, the URL in the Javascript code contains the name of the
dispatcher program (dispatch.fcgi), and not the name of the Perl CGI script.

However, if I reconfigure lighttpd to do non-Fast CGI scripts, then the
CGI script with CGI::Ajax works fine: the generated URL is correct.

My question is: how do I determine which component could be causing
the problem that I am seeing?

More information: lighttpd 1.4.11, fcgi-devkit 2.4.0, Perl 5.8.7,
CGI::Ajax 0.694, CGI::Fast 0.67, FreeBSD 5.x. I can provide
configuration files and an Ethereal TCP trace on request.

Many thanks in advance for any ideas and suggestions.
	Warren
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.