[mod_python] AddHandler on .htaccess

Marcello Semboli dinogen at yahoo.com
Wed Oct 3 06:32:36 EDT 2007


Hello, everybody.

I'm writing a web application in python using mod_python.publisher and a template PSP system.
I have Apache 2.0.55, mod_python 3.2.8 and python 2.4.4c1.

If my .htaccess is: 
    AddHandler mod_python .py
    PythonHandler mod_python.publisher

everything works well. The page
http://localhost/login.py 
and 
http://localhost/login.py/index render the correct page.

But if I want to use a different extension, say, login.psp I can't get it works at all!

I try to change login.py in login.psp and .htaccess as follow:
    AddHandler mod_python .psp

    PythonHandler mod_python.publisher


and also:
    AddHandler mod_python .psp


    PythonHandler mod_python.publisher |  .psp



In any case I got 404 Not Found.
Restarting apache, flushing cache, removing various .pyc cannot fix the problem.

Where is my error???


________________________________
Marcello Semboli
http://dinogen.hacknight.org




      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html



More information about the Mod_python mailing list