[mod_python] Configuring Apache

Jeff Davis list-mod_python at empires.org
Tue Jul 30 13:35:34 EST 2002


Here is my configuration information (note: I use the publisher handler, find 
out more about the different built-in handlers at http://www.modpython.org):

AddHandler python-program .py
PythonHandler mod_python.publisher
PythonDebug On

Regards,
	Jeff

On Tuesday 30 July 2002 09:54 am, Peter Bittner wrote:
> Hi,
>
> I've got SuSE Linux 8.0, so there are probably the latest stable versions
> of mod_python and Apache on my computer. Apache is installed with the
> mod_python module (an appropriate message shows up, when the apache server
> ist (re)started.)
>
> However, since .py files are obviously not recognized as Python scripts I
> have added the following lines to my httpd.conf file in the mime-types
> section:
>
>     #
>     # Python:
>     #
>     <IfModule mod_python.c>
>     AddType application/x-httpd-python .py
>     AddHandler python-program .py
>     #PythonHandler index
>     </IfModule>
>
> Now it comes:
> When I remove the comment-character in front of the "PythonHandler"
> statement, the Apache server gives me a "500 Server Misconfiguration
> Error".
>
> Can anyone help me getting .py-scripts running on my Apache?
>
> Cheers, Peter




More information about the Mod_python mailing list