Reputation: 5931
With mod_python I am wondering why I have to create a PythonHandler in order to get a URL to parse Python code. If you see below, if I do not have a file called jrpython.py it will not work.
Is there a way to make all of my .py files just run without adding to this everytime?
<VirtualHost *:80>
DocumentRoot /var/www/vhost/testsite.com
ServerName www.testsite.com
<Directory "/var/www/vhost/testsite.com">
AddHandler mod_python .py
PythonHandler jrpython
PythonDebug On
Options FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow From All
</Directory>
</VirtualHost>
Upvotes: 0
Views: 1084
Reputation: 2774
Sure, you can have mod_python run your .py files without having to name them all. You still need to specify a PythonHandler, but that can be the Publisher handler.
Upvotes: 1