apache+fastcgi+flup+web.py 到最后一步出现了问题 求助!

2013-11-20 21:17:10 +08:00
 yingluck
一切都是按照教程来的,结果在自己的VPS上出现了500错误:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.16 (Debian) Server at 23.226.226.196 Port 80


然后这是错误日志:
root@nightwish:/etc/apache2/conf.d# tail -f localized-error-pages
# ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
# ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
# ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
# ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
# ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
# ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
# ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
# </IfModule>
# </IfModule>
#</IfModule>

请问这是哪里配置出了问题?
2313 次点击
所在节点    问与答
6 条回复
yingluck
2013-11-20 21:25:08 +08:00
[Wed Nov 20 08:02:56 2013] [notice] Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_fcgid/2.3.6 mod_wsgi/3.3 Python/2.6.6 configured -- resuming normal operations
[Wed Nov 20 08:02:56 2013] [notice] FastCGI: process manager initialized (pid 13137)
[Wed Nov 20 08:03:20 2013] [alert] [client 11.1.86.12] /var/www/weixintoxiezhua/.htaccess: LoadModule not allowed here
[Wed Nov 20 08:22:32 2013] [error] [client 117.28.162.214] File does not exist: /var/www/favicon.ico
yingluck
2013-11-20 22:14:07 +08:00
.access文件中出现什么错误日志中就显示什么,但是我用的是apache2,/etc/apache2/sites-available中的default和/etc/apache2/sites-enable中的000-default都改成AllowOverride All了。实在没招了
9hills
2013-11-20 22:56:00 +08:00
localized-error-pages 不是错误日志。。。conf.d下面怎么会有日志呢

access_log 和error_log 才是
ipconfiger
2013-11-20 23:30:39 +08:00
这个方式太旧了吧,试试用 nginx + gunicorn 的方式来部署吧,配置方便效率高
yingluck
2013-11-21 08:30:18 +08:00
@9hills 请看一楼
yingluck
2013-11-21 08:30:42 +08:00
@ipconfiger 多谢!我试试。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/89973

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX