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