Apache2 + Python WITHOUT mod_pytho

John Nagle nagle at animats.com
Wed Jun 25 12:21:14 EDT 2008


Jorge Godoy wrote:
> pistacchio wrote:
> 
>> Hi to all!
>> How can i configure apache2 so that it processes all .py files with
>> python _without_ using mod_python?
>> I'm on Ubuntu 8.4.
> 
> I have no idea about how to do that in Ubuntu.
> 
> Use fcgi or wsgi for your Python scripts.  There should be recipes around for your distribution.

    Note that if you use FCGI, don't put your FCGI scripts in a directory
enabled for CGI.  Apache has a bias towards CGI, which is built in,
and will use CGI to run your FCGI scripts.  Slowly.

					John Nagle



More information about the Python-list mailing list