durusmail: quixote-users: Overlaying a static directory
Overlaying a static directory
2005-04-11
2005-04-12
2005-04-12
2005-04-12
2005-04-13
2005-04-13
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
David Binger (3 parts)
2005-04-14
2005-04-14
2005-04-13
2005-04-14
2005-04-14
2005-04-13
SCGI util.
2005-04-12
2005-04-13
2005-04-13
2005-04-13
2005-04-13
Overlaying a static directory
David M. Cooke
2005-04-13
mso@oz.net writes:
>
> That immediately gives a "Premature end of script headers" in the Apache
> log with no further explanation, and no messages in the Quixote access log
> or error log.  I also tried FastCGI, and that works once but then hangs
> for further requests.  But either of these also causes problems with my
> URLs coz I'd need to use mod_rewrite to hide the /cgi-bin/app.cgi2scgi or
> ..fcg prefix, and then the redirects in my application put the /cgi-bin...
> prefix back in because it's part of the script_name.  Sigh.  Would anyone
> feel like modifying scgi.c to dump the headers and part of the body to a
> file before passing them them to Apache?  It looks like my only other
> alternative is to go back to the old way with Basic Authentication.

As another data point, you might want to try my scgi-cgi script. It's
much the same in functionality as cgi2scgi (it's derived from Neil's
Apache 1.3 mod_scgi module).

It's available at
http://arbutus.mcmaster.ca/dmc/software/
The current version is 0.9.

If you add a -DDEBUG when compiling it, it will dump the headers and
various debugging messages to stderr (so it'll go in the Apache error
log).

Also, the quixote/ subdirectory in the tarball has a demo which shows
how I solve the /cgi-bin/scgi.cgi prefix problem.

--
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke                      http://arbutus.physics.mcmaster.ca/dmc/
|cookedm@physics.mcmaster.ca

reply