在nginx上安装symfony2不加载css

在nginx上安装symfony2不加载css,symfony,nginx,symfony-2.3,Symfony,Nginx,Symfony 2.3,我有一个问题,我想在nginx上安装symfony2,框架已经安装,但没有加载css、js、img。因此,我只查看没有样式的主页。我的安装: server { listen 80; server_name symfony.dev; root /home/vagrant/Workspace/symfony/web; access_log off; error_log /var/log/nginx/symfony.dev-error.log error; location / { #

我有一个问题,我想在nginx上安装symfony2,框架已经安装,但没有加载css、js、img。因此,我只查看没有样式的主页。我的安装:

server {
listen 80;
server_name symfony.dev;
root /home/vagrant/Workspace/symfony/web;

access_log off;
error_log  /var/log/nginx/symfony.dev-error.log error;

location / {
    # try to serve file directly, fallback to app.php
    try_files $uri /app.php$is_args$args;
}

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

我在/etc/nginx/nginx.conf中查看了以下内容:

include /etc/nginx/mime.types;
在mime.types中存在css、js等。 请帮帮我!
Thnx提前

您必须执行此命令才能在web目录中安装资产:

php app/console assets:install

你安装了资产了吗?没有,但通常css、js等会加载尝试执行以下命令:
php应用程序/控制台资产:install
Thnx-DOZ…..愚蠢的错误不客气,我会为你提供有效的答案bower资产是什么?此命令对此不起作用。谢谢