关于流浪汉的Nginx未加载symfony2的资产

时间:2015-04-21 13:23:05

标签: php symfony nginx vagrant symfony-2.1

我的网站有问题,所有资产(css,js,字体)都没有加载。 我的配置:

server {
    listen                80;

    server_name           shop.dev;
    index  index.php index.html index.htm;

    access_log            /var/log/nginx/test.dev.access.log;
    error_log             /var/log/nginx/test.dev.error.log;

    location / {
        #index app_dev.php;
        #try_files $uri /app_dev.php?$args;
        try_files $uri /app_dev.php$is_args$args;
    }

    location ~ .php$ {
        root  /home/vagrant/Workspace/shop/web;
        index  index.html index.htm index.php;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $request_filename;
        fastcgi_param APPLICATION_ENV development;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;
    }
    sendfile off;
}

我使用流浪汉机器。存在解决方案?请帮帮我!!

0 个答案:

没有答案