durusmail: quixote-users: Any users of mod_python got configs they'll share??
Any users of mod_python got configs they'll share??
2003-01-23
Any users of mod_python got configs they'll share??
2003-01-23
2003-01-23
2003-01-23
Any users of mod_python got configs they'll share??
Ken Kennedy
2003-01-23
Hello all...

I looking for some help with Apache2 configuration issues.

Right now, I'm using apache2 (I have a subversion server on a
different virtual host, so I need apache2), and I'm using mod_python. My
setup plans were inspired by Greg's list post in:

 http://mail.mems-exchange.org/pipermail/quixote-users/2002-May/000452.html

---BEGIN QUOTE---

As long as we're comparing configurations, here's what
www.mems-exchange.org does for the bulk of the site:


    SCGIServer 127.0.0.1 3000
    SCGIHandler On


That tedious regex is just the list of top-level "directories" handled
by Quixote, so eg.

  http://www.mems-exchange.org/account/

is handled by the SCGI server on port 3000 (our driver script)

---END QUOTE---

I like that plan, and I'm trying to do something similar. I realize
you're using SCGI, of course...hopefully that's not my problem.

As of now, my conf includes this:

        
                SetHandler python-program
                PythonHandler quixote.mod_python_handler
                PythonOption quixote-root-namespace kenzoid
                PythonInterpreter kenzoid
                PythonDebug On
        

My pythonspace is built like so (simplified):

.../site-packages/kenzoid/
        __init__.py
        blog/
                __init__.py
        bookmarks
                __init__.py

etc.


I'd like for /blog to be handled kenzoid.blog._q_index(), bookmarks
similarly, etc. As of now, though, I'm not having much success. For
example, /blog seems to be passing through to Quixote, but then
failing:

The requested link does not exist on this site. If you arrived here by
following a link from an external page, please inform that page's
maintainer.
Page not found: /blog/

Is there something tricky I have to do here, though? If /blog/ and
/bookmark/ are each being passed to the same handler, should I be
testing in the kenzoid._q_index() for the component, perhaps?

I've gotten things working with CGI, and I freakin' LOVE the
toolkit. I'll get this working, but any help is appreciated. I'm about
to the point where I'll fall back and punt to apache1/SCGI (I use
Debian, so it's packaged for me...thanks, Neil!) just to get things
started. Then I can always come back to apache2 when I've got fewer
variables to deal with. OTOH, if I'm doing something stupid (always a
possibility...*grin*), straightening it out here would be great.

Thanks for any help, and thanks a bunch for quixote. It rocks.

Later!

--

Ken Kennedy     | http://www.kenzoid.com        | kenzoid@io.com

reply