最近翻看 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