apache2configuration文件中“python-program”的源代码

我试图调整我的服务器,但我不明白什么是“站点configuration文件中的”python程序“的定义。 由此,我明白这是对python的某种参考。

我的意思是,它在哪里定义? 哪一个版本也能引导?这个variables(如果是这样的话)在哪里引入? 它是否内置到Apache 2?

为了确保我清楚,我在这方面看到它…

<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> 

这是mod_python的一部分。 您所拥有的<Location>块告诉Apache将所有请求传递给mod_python ,它将根据PythonHandler设置(这是在PythonPathfind的一个模块)来处理它们。

据推测,你要么加载mod_python通过LoadModule指令在你的Apacheconfiguration的某处,或者它是静态编译(前者更有可能…我甚至不知道,如果mod_python支持非模块选项)。