mod_python problem

poiboy bitbucket at safe-mail.net
Fri May 7 04:49:45 EDT 2004


> Here is my server signature:
> 
> Apache/2.0.48 (Unix) PHP/4.3.4 mod_python/3.0.3 Python/2.3.3 
> mod_ssl/2.0.48 OpenSSL/0.9.7c Server at arwen.msnet Port 80
> 
> This is what I have in httpd.conf:
> 
> LoadModule python_module libexec/apache2/mod_python.so
> AddHandler mod_python .py
> AddType applcation/x-http-python .py

Try:

  AddHandler python-program .py

The "AddHandler mod_python .py" version is intended to work with mod_python
3.1.3 and higher. Check out http://www.modpython.org/FAQ/faqw.py?req=all.

For sympathy's sake, I've been using the manual released with 3.1.0a which also
uses "AddHandler mod_python" and doesn't mention python-program at all.

Aloha,
the poiboy



More information about the Python-list mailing list