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-26
On Tue, Nov 25, 2003 at 09:00:12PM -0500, A.M. Kuchling wrote:
> On Tue, Nov 25, 2003 at 05:20:44PM -0800, Dave Kuhlman wrote:
> >     GET /qotd HTTP/1.1.
> >     Host: localhost:3001.
>
> You're not pointing your browser at http://localhost:3001, are you?  Just
> checking the obvious...

Or, perhaps not so obvious for the clue impaired.  Yes, I was using
URL http://localhost:3001/qotd.  Well, that's the port the "Web
Server Configuration for Quixote" talked about.  That would be the
cause of the error I'm seeing, right?

So, now I'm reading that doc more closely and trying to come up
with another mental model.  Perhaps the following sequence is what
I should be trying to set-up.

  client/browser --> Apache --> mod_scgi --> scgi server --> my quixote code

If the above picture is (reasonably) correct), then what I need to
do is figure out how to tell Apache to redirect requests (say for
http://localhost/qotd) to the scgi server that I've started
and that is listening on port 3001.  Right?

... [15 minutes later] ...

Yes.  It appears to be working.  My request.environ contains:

    SERVER_SOFTWARE: Apache/1.3.27 (Unix) Debian GNU/Linux mod_scgi/1.1

so, it really is using Apache and mod_scgi.

And, the following in my Apache httpd.conf is doing the re-direct
for me, right?

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

Much thanks.

Next step:  How would I redirect something like
http://localhost:8081/qotd to the scgi server?

... Ah, the "Listen" directive.  Got it.

I think I've got enough to keep me quiet for a while now.  Hope I
don't become one of those people who think that, because they know
how to write three Apache configuration directives, they are now a
Web site administrator.

Thanks again.  And, thanks for Quixote.

Dave

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

reply