durusmail: quixote-users: mod_python config troubles
mod_python config troubles
2004-07-06
2004-07-06
2004-07-06
mod_python config troubles
Igor Stroh
2004-07-06
Hi there,

I assume this has been asked before quite often, but after having digged
for some time in the archives I still have no clue how to configure Apache
to run an app with mod_python and quixote.

Actually, I do know how I _could_ make it, but I don't like the way it's
done :)
I've read[1] and must admit that I don't like this solution. What I need
as a
setup that reads something like [2]. Obviously the stuff in [2] doesn't
work.
If I understood the idea behind quixote correctly, I need a driver script
for an app to be run. The code in quixote/demo/__init__.py was the point
I started from, with no success though: I created
/var/www/quixoteBasedApp/__init__.py and added a simple _q_index
just for testing purposes:

def _q_index(request):
     return "My first QUIXOTE app\n."

Now if I access http://foo.bar.com, I get a directory listing (the one
from apache)
instead of the message above.

Any thoughts?

TIA,
Igor

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

[2]:

        ServerName foo.bar.com

        DocumentRoot /var/www/quixoteBasedApp

        SetHandler python-program
        PythonPath "sys.path+['/var/www/']"
        PythonHandler quixote.mod_python_handler
        PythonOption quixote-root-namespace quixoteBasedApp
        PythonInterpreter quixote.quixoteBasedApp
        PythonDebug On


--
- Do you like WYSIWYG systems?
- Definitely not. I can type faster than I can point.
   And my mother told me that pointing is impolite.
                                         (c) Andrew S. Tanenbaum's
personal FAQ

reply