ubuntu 13.10配置mod_python

最近翻看 Python for Bioinformatics.pdf 的網絡介紹部分,瞎折騰。 python

迷糊了半天,勉強搞定: shell

在 /etc/apache2/apache2.conf 中添加: apache

<Directory /var/www/hehe>
#    SetHandler mod_python # 仍是限定 .py 了
    AddHandler mod_python .py
#    PythonHandler mptest
    PythonHandler mod_python.publisher
    PythonDebug On
</Directory>
重啓 apache2
相關文章
相關標籤/搜索