[CPyUG:85361] web2py,apache2,mod_python配置问题
DocumentRoot "/usr/www/blog"
ServerName localhost
#ServerAlias all
<Directory "/usr/www/blog">
Order deny,allow
Allow from all
</Directory>
<Location "/">
SetHandler python-program
PythonHandler modpythonhandler
PythonPath "['/usr/www/blog/'] + sys.path"
PythonOption SCRIPT_NAME /blog
#SetHandler python-program
#PythonPath "sys.path+['/usr/www/']"
#PythonHandler django.core.handlers.modpython
#SetEnv DJANGO_SETTINGS_MODULE fiction.settings
#PythonInterpreter fiction
PythonDebug On
</Location>
开始时安装mod_wsgi,后来发现目录下有一个modpythonhandler.py,按它说明配置,显示出错,但是能访问http://localhost/admin,登录后又是
Invalid request
显示/admin的时候是没加载css 些静态文件 ,也就是说,只显示url的第一级,否则显示错误。
freebsd下的默认没有装py-dbbsd,在日志中会出警告,装上也一个样子。
freebsd,ubuntu下都是这个样子,有经验的给指点下
--
从前有只山...
--~--~---------~--~----~------------~-------~--~----~
来自: `python-cn`:CPyUG ~ 华蟒用户组 | 发言:python-cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
退订: http://tinyurl.com/45a9tb /针对163/qq邮箱:http://tinyurl.com/4dg6hc
详情: https://groups.google.com/group/python-cn
严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
-~----------~----~----~----~------~----~------~--~---