[mod_python] cg-bin files execution

John isofroni at cc.uoi.gr
Thu Dec 2 10:00:41 EST 2004


----- Original Message ----- 
From: "Francois" <py at topmusic.ch>
To: "John" <isofroni at cc.uoi.gr>
Cc: "Mod_Python" <mod_python at modpython.org>
Sent: Thursday, December 02, 2004 3:31 PM
Subject: RE: [mod_python] cg-bin files execution


> > The following is in the section "testing " in the mod_python tutorial
> > <Directory /some/directory/htdocs/test>
> >   AddHandler python-program .py
> >   PythonHandler mptest
> >   PythonDebug On
> > </Directory>
> > Should i put the PythonHandler mptest for every script filename?
> > Because
> > it's too exhausting for so many files.
> > And what about the psp files?
>
> Personnaly, I use mod_python.publisher with this configuration in
.htaccess
> file :
>
> #/your/www/directory/.htaccess
> AuthType Basic
> DirectoryIndex index.py
> AddHandler python-program .py
> PythonHandler mod_python.publisher
> PythonDebug On
> Allow from all
>
> So, when you type the url :
> http://mywebsite/
> python call the function 'index' in then file
> /your/www/directory/index.py
>
> and
> http://mywebsite/test.py/myfunction
> python call the function 'myfunction' in then file
> /your/www/directory/test.py
>
> Best regards
> Francois
>
>


I put that in my httpd.conf

<Directory /a/dir/>
AddHandler python-program .py
PythonHandler mod_python.publisher
PythonDebug On
</Directory>


But now i cannot lunch any .py file.

Could you tell me what is going on with mod_python as far as i am a php
programmer and there (mod_php4.so) every .php file works without any furthet
configuration.




More information about the Mod_python mailing list