nginx 500内部服务器错误的symfony2

时间:2015-03-10 11:12:18

标签: symfony nginx

我是symfony的新手。我正在尝试使用nginx在ubuntu服务器上设置symfony2。但它显示500内部服务器错误。我有这个服务器运行一些laravel项目和它的发现

任何人都可以帮助解决问题所在吗?

我的nginx配置是:

server {
    listen 80;

    root /home/ubuntu/test-symfony/web;
    index app.php;

    # Make site accessible from http://localhost/
    server_name symfony.jonesjapriady.com  http://symfony.jonesjapriady.com;

    error_log /var/log/nginx/symfony2.error.log;
    access_log /var/log/nginx/symfony2.access.log;

    location / {
        try_files $uri /app.php?$query_string;
    }
    location ~ ^/(app_dev|app_test.php|app)\.php(/|$) {
        include fastcgi_params;
        fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTPS off;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
    }
}

0 个答案:

没有答案