[mod_python] Published example and URL's

Eric Radman theman at eradman.com
Wed Jun 15 23:52:30 EDT 2005

On 04:45 Thu 16 Jun     , ??ystein lekang wrote:
> I would like to avoid what can be seen in 
> http://www.modpython.org/examples/psp_site/templates/main_menu.html
> or
> http://www.modpython.org/examples/psp_site/templates/main_frame.html

This is what you'll get if there's no Apache handler set for the
location or the extension of your scripts. If Apache does not find a
specific handler then it just serves the content. Here is an example of
the publisher handler being used:

<Directory "/var/www/app">
    SetHandler mod_python
    PythonHandler mod_python.publisher

Here is the Apache documentation of Handlers:


Eric Radman  |  http://eradman.com

More information about the Mod_python mailing list