gpt4 book ai didi

python - 让 PSP 和 Publisher 处理程序在 Apache2 mod-python 中协同工作

转载 作者:行者123 更新时间:2023-12-01 06:14:52 24 4
gpt4 key购买 nike

我可以第一次让 mod-python 在 apache2 上工作,并且我可以通过添加其中之一来使用 PSP 和 Publisher 处理程序

AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On

或者

AddHandler mod_python .psp
PythonHandler mod_python.psp
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>

有关更多详细信息,请阅读手册:http://www.modpython.org/live/current/doc-html/dir-handlers-syn.html

关于python - 让 PSP 和 Publisher 处理程序在 Apache2 mod-python 中协同工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3860957/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com