[mod_python] Configuring Apache

vmilitaru at sympatico.ca vmilitaru at sympatico.ca
Tue Jul 30 14:25:47 EST 2002


Sounds like you haven't read the mod_python (excellent!) docs.
I suggest you start with that. FAQ has also useful tips for your next hurdles.
But the 'fast and dirty' answer to your question is:

PythonHandler publisher

but eventually (hopefully):

PythonHandler your_own_customized_publisher

Cheers,
Vio

* Peter Bittner <peter.bittner at gmx.net> [020730 14:15]:
> 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
> 
> -- 
> Peter Bittner
> mobil: +43/(0)650/4151545
> web: http://beam.to/peter.bittner - http://beam.to/htmlkurs
> mail: peter.bittner at gmx.net
> 
> "Free software is like free speech, not free beer" (Richard Stallman)
> 
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python



More information about the Mod_python mailing list