yingluck
V2EX  ›  问与答

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

  •  
  •   yingluck · Nov 20, 2013 · 2884 views
    This topic created in 4655 days ago, the information mentioned may be changed or developed.
    一切都是按照教程来的,结果在自己的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 replies    1970-01-01 08:00:00 +08:00
    yingluck
        1
    yingluck  
    OP
       Nov 20, 2013
    [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
       Nov 20, 2013
    .access文件中出现什么错误日志中就显示什么,但是我用的是apache2,/etc/apache2/sites-available中的default和/etc/apache2/sites-enable中的000-default都改成AllowOverride All了。实在没招了
    9hills
        3
    9hills  
       Nov 20, 2013
    localized-error-pages 不是错误日志。。。conf.d下面怎么会有日志呢

    access_log 和error_log 才是
    ipconfiger
        4
    ipconfiger  
       Nov 20, 2013
    这个方式太旧了吧,试试用 nginx + gunicorn 的方式来部署吧,配置方便效率高
    yingluck
        5
    yingluck  
    OP
       Nov 21, 2013
    @9hills 请看一楼
    yingluck
        6
    yingluck  
    OP
       Nov 21, 2013
    @ipconfiger 多谢!我试试。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2177 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:12 · PVG 00:12 · LAX 09:12 · JFK 12:12
    ♥ Do have faith in what you're doing.