Chinaunix
标题:
[求助]mod_python解析 *.py的问题
[打印本页]
作者:
googleboy
时间:
2006-05-23 15:17
标题:
[求助]mod_python解析 *.py的问题
我用的时Apache +mod_python,但是现在可以解析*.psp,但是解析*.py就是不成功,请大家帮助。
我的配置文件:
<Directory "/usr/local/apache2/htdocs/modpython">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
AddHandler mod_python .py
# PythonHandler session
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
如果把#去掉,注释掉下面的一行就可以。
<Directory "/usr/local/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
AddHandler mod_python .psp
PythonHandler mod_python.psp
PythonDebug On
</Directory>
这个是解析*.psp的配置。
作者:
googleboy
时间:
2006-05-23 15:20
对了,对于解析*.py的出错信息是:404,说找不到网页。
access_log 记录:
172.31.66.58 - - [23/May/2006:23:19:01 +0800] "GET /modpython/session.py HTTP/1.1" 404 354
172.31.66.58 - - [23/May/2006:23:19:03 +0800] "GET /modpython/session.py HTTP/1.1" 404 354
172.31.66.58 - - [23/May/2006:23:19:04 +0800] "GET /modpython/session.py HTTP/1.1" 404 354
error_log记录:
[Tue May 23 23:19:36 2006] [notice] mod_python: (Re)importing module 'mod_python.publisher'
[Tue May 23 23:19:36 2006] [notice] [client 172.31.66.58] Publisher loading page /usr/local/apache2/htdocs/modpython/session.py
作者:
bleem1998
时间:
2006-05-23 20:04
你的.py文件里有没有index(req)这个方法?
作者:
newbuding
时间:
2006-05-24 08:15
为什么是
PythonHandler session
呢?
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2