Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/358.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
让PSP和发布者处理程序在Apache2 mod python中协同工作_Python_Apache2_Mod Python - Fatal编程技术网

让PSP和发布者处理程序在Apache2 mod python中协同工作

让PSP和发布者处理程序在Apache2 mod python中协同工作,python,apache2,mod-python,Python,Apache2,Mod Python,我可以让mod python第一次在apache2上工作,我可以通过添加任何一个来使用PSP和Publisher handler AddHandler mod_python .py PythonHandler mod_python.publisher PythonDebug On 或 在Ubuntu lucid lynx上设置为/etc/apache2/sites available/default 我试着把两个都放进去,但都没用。现在我需要PSP和Publisher一起工作 还有别的事吗,有

我可以让mod python第一次在apache2上工作,我可以通过添加任何一个来使用PSP和Publisher handler

AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On

在Ubuntu lucid lynx上设置为/etc/apache2/sites available/default

我试着把两个都放进去,但都没用。现在我需要PSP和Publisher一起工作

还有别的事吗,有人知道支持突出显示的文本编辑器吗?最好是有代码完成或IDE。

这一个适合我:

<Directory /var/www>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
        AddHandler mod_python .py
        PythonHandler mod_python.publisher | .py
        AddHandler mod_python .psp .psp_
        PythonHandler mod_python.psp | .psp .psp_
        PythonDebug On
</Directory>

选项索引跟随符号链接多视图
允许超越所有
命令允许,拒绝
通融
AddHandler mod_python.py
PythonHandler mod_python.publisher |.py
AddHandler mod_python.psp.psp_
PythonHandler mod_python.psp |.psp.psp_
蟒蛇

有关更多详细信息,请阅读手册:

mod_python
已死亡。迁移到WSGI CMS。“目前,mod_python没有处于积极的开发阶段。这并不意味着它像一些人所说的那样“死了”。smiply意味着代码和项目已经足够成熟,而维护它所需的资源很少。”
<Directory /var/www>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
        AddHandler mod_python .py
        PythonHandler mod_python.publisher | .py
        AddHandler mod_python .psp .psp_
        PythonHandler mod_python.psp | .psp .psp_
        PythonDebug On
</Directory>