Decided I want to use python for web programming. I am a fan of Lighttpd, but when it came to python, just seemed like apache had some better options. I am currently setup with Apache2 and mod_python.
I use VirtualHost site configurations to serve a few websites, and do per-site python configuration within those files.
I am using something like...
<Directory /home/mysite/www/>
Allow ... ... ...
</Directory>
<Location '^/*[^\.]*[$\?]*$'>
#This *should* catch any location that does not exist on disk.
SetHandler mod_python
PythonHandler pyRequest
PythonPath "['/home/mysite/modpy/'] + sys.path"
</Location>
Its working out ok. Just wondering if their are *better* ways to arrange this setup.
THanks for any input.