老男人百科 > 百科 > 正文

apache mod_python配置

2023-04-24 10:57:31 阅读( 5310)

想找一个最简单的方式跑python的cgi,选择了mod_python,这里面的pythonhandlerindex没搞的很懂,不过反正程序是可以跑起来了。

寻找运行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

专题页