durusmail: quixote-users: scgi configuration for Apache?
scgi configuration for Apache?
2003-11-25
2003-11-26
2003-11-26
2003-11-26
scgi configuration for Apache?
Dave Kuhlman
2003-11-25
I've installed mod_scgi, and I'm getting this call-back:

=======================================================================
Traceback (most recent call last):
  File "./server-scgi.py", line 15, in ?
    main(MyAppHandler)
  File "/usr/local/lib/python2.3/site-packages/scgi/quixote_handler.py", line
151, in main
    max_children=max_children).serve()
  File "/usr/local/lib/python2.3/site-packages/scgi/scgi_server.py", line 252,
in serve
    self.delegate_request(conn)
  File "/usr/local/lib/python2.3/site-packages/scgi/scgi_server.py", line 236,
in delegate_request
    self.spawn_child(conn)
  File "/usr/local/lib/python2.3/site-packages/scgi/scgi_server.py", line 127,
in spawn_child
    self.handler_class(parent_fd).serve()
  File "/usr/local/lib/python2.3/site-packages/scgi/scgi_server.py", line 66, in
serve
    self.handle_connection(conn)
  File "/usr/local/lib/python2.3/site-packages/scgi/quixote_handler.py", line
37, in handle_connection
    env = self.read_env(input)
  File "/usr/local/lib/python2.3/site-packages/scgi/scgi_server.py", line 70, in
read_env
    headers = ns_reads(input)
  File "/usr/local/lib/python2.3/site-packages/scgi/scgi_server.py", line 33, in
ns_reads
    size = ns_read_size(input)
  File "/usr/local/lib/python2.3/site-packages/scgi/scgi_server.py", line 29, in
ns_read_size
    return long(size)
ValueError: invalid literal for long(): GET /qotd HTTP/1.1
User-Agent
=======================================================================

Apparently, while reading on a socket, the function

    scgi-1.1.scgi.scgi_server.ns_read_size()

expects a size followed by a colon on the input, but is not
finding it.  Looks like it is being fed input that is missing
something.

Is this an Apache configuration error?

In my httpd.conf, I've added:

    LoadModule scgi_module /usr/local/lib/python2.3/site-packages/mod_scgi.so
    
        SCGIServer 127.0.0.1 3001
        SCGIHandler On
    

I've searched the quixote-users email archive, but could not find
anything that looked helpful.

I'm using:
    Apache 1.3
    scgi-1.1
    Quixote-0.7a2

Is there any more information about the various Web server
alternatives and how to set them up besides "Web Server
Configuration for Quixote" (web_server.html in the Quixote docs)?
That's a helpful document, but I could use more information.

Thanks for help.

Dave

--
Dave Kuhlman
dkuhlman@rexx.com
http://www.rexx.com/~dkuhlman

reply