[mod_python] Using mod_python on a commercial hosting provider

Jorey Bump list at joreybump.com
Fri Mar 18 16:13:56 EST 2005


azurIt wrote:

> make file '.htaccess' in directory where you python scripts are and 
> write this into it:
> 
> AddHandler python-program .py .pyc
> PythonHandler mod_python.publisher
> PythonDebug On
> 
> it will set the handler for .py and .pyc files to the mod_python's 
> publisher.py . if it won't work, you don't have a permission to do 
> it, then you must ask the admin to do this for you.

On some hosts, httpd.conf is world readable, so look for it and see how 
the admin has already configured mod_python. Also look for AllowOverride 
statements to get an idea of what you can do with .htaccess files.



More information about the Mod_python mailing list