Home > 技术点滴 > apache mod_python配置

apache mod_python配置

May 17th, 2012 baoz Go to comments

想找一个最简单的方式跑python的cgi,选择了mod_python,这里面的pythonhandler index没搞的很懂,不过反正程序是可以跑起来了。centos6里要用epel源才有mod_python

LoadModule python_module modules/mod_python.so
<Directory “/var/www/html/py”>
AllowOverride FileInfo
AddHandler mod_python .py
#    PythonHandler index
PythonDebug On
Order allow,deny
Allow from all
</Directory>

 

 

Categories: 技术点滴 Tags: , ,
  1. No comments yet.