I'm attempting to tweak my server but I don't understand what the definition of "python-program" is in a site configuration file. And by that, I understand it's some sort of reference to python.
What I mean, where is it defined? Which version does that lead too and where is that variable (if that is what it is) introduced? Is it built in to Apache 2?
To ensure I'm clear, I see it in this context...
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug Off
PythonPath "['/main-data/www/mysite'] + sys.path
</Location>
That's part of mod_python. The
<Location>
block you have tells Apache to pass all requests tomod_python
, which will handle them according them to thePythonHandler
setting (which is a module that will be found somewhere inPythonPath
).Presumably you're either loading
mod_python
via aLoadModule
directive somewhere in your Apache configuration or it's compiled in statically (the former is far more likely...I don't even know ifmod_python
supports the non-module option).