httpd.conf
LoadModule wsgi_module libexec/apache2/mod_wsgi.so
已经加载了mod_wsgi,已重启apache
9000端口对一webpy站点开放
但通过localhost:9000时访问时,500错误,通过看apache日志,得知是:
[Sun Feb 12 09:00:21 2012] [error] [client ::1] import web
[Sun Feb 12 09:00:21 2012] [error] [client ::1] ImportError: No module named web
好吧,我错了, webpy官网FAQ里就有 If you get an "ImportError: No module named web" in your apache error.log file, you could try setting the absolute path in code.py before importing web: