V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
yingluck
V2EX  ›  问与答

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

  •  
  •   yingluck · 2013-11-20 21:17:10 +08:00 · 2379 次点击
    这是一个创建于 4054 天前的主题,其中的信息可能已经有所发展或是发生改变。
    一切都是按照教程来的,结果在自己的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>

    请问这是哪里配置出了问题?
    6 条回复    1970-01-01 08:00:00 +08:00
    yingluck
        1
    yingluck  
    OP
       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
        2
    yingluck  
    OP
       2013-11-20 22:14:07 +08:00
    .access文件中出现什么错误日志中就显示什么,但是我用的是apache2,/etc/apache2/sites-available中的default和/etc/apache2/sites-enable中的000-default都改成AllowOverride All了。实在没招了
    9hills
        3
    9hills  
       2013-11-20 22:56:00 +08:00
    localized-error-pages 不是错误日志。。。conf.d下面怎么会有日志呢

    access_log 和error_log 才是
    ipconfiger
        4
    ipconfiger  
       2013-11-20 23:30:39 +08:00
    这个方式太旧了吧,试试用 nginx + gunicorn 的方式来部署吧,配置方便效率高
    yingluck
        5
    yingluck  
    OP
       2013-11-21 08:30:18 +08:00
    @9hills 请看一楼
    yingluck
        6
    yingluck  
    OP
       2013-11-21 08:30:42 +08:00
    @ipconfiger 多谢!我试试。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3494 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 05:00 · PVG 13:00 · LAX 21:00 · JFK 00:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.