On Thu, Jul 08, 2004 at 01:50:38PM -0500, jbdunsmo@utmb.edu wrote:
> i upgraded to scgi-1.2_alpha2 and mod_scgi-1.2_alpha2. i'm using
> quixote-1.0. now i'm getting a different error.
>
> in firefox the error is:
>
> Method Not Implemented
> _form to /index.html not supported.
Hi Jason,
Sorry that you are having problems. The Apache 2 module has not
been well tested yet and it appears as though it still has issues.
It may be a little while before I can make time to try to debug it
(we use Apache 1.3).
I'm attaching a little CGI to SCGI adaptor that I wrote. We are
planning to use this for one of our sites. The performance is not
quite as good as mod_scgi but it's still pretty fast.
You need to edit the code to set the port and host of the SCGI
server. Then compile like this:
gcc -o mysite.cgi cgi2scgi.c
You can then copy the .cgi executable to your Apache cgi-bin
directory. You also need to apply the attached patch to the
quixote_handler module.
HTH,
Neil
--- scgi/quixote_handler.py (revision 24509)
+++ scgi/quixote_handler.py (working copy)
@@ -44,7 +44,7 @@
assert path[:len(prefix)] == prefix, (
"path %r doesn't start with prefix %r" % (path, prefix))
env['SCRIPT_NAME'] = prefix
- env['PATH_INFO'] = path[len(prefix):]
+ env['PATH_INFO'] = path[len(prefix):] + env.get('PATH_INFO', '')
self.publisher.publish(input, output, sys.stderr, env)