I am having trouble with Yii2 in that it won't load the bootstrap.css file. In fact it's not being created. And when I try to load http://frontend.local/assets/1ecfb338/css/bootstrap.css, it just loads the Yii front page, not the css file.
Why would this happen? Could it be my Nginx config?
server {
set $yii_bootstrap "index.php";
listen 80;
server_name frontend.local;
root /var/www/frontend/web;
index $yii_bootstrap;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log info;
location / {
try_files $uri $uri/ /$yii_bootstrap?$args;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.(ht|svn|git|sql) {
deny all;
}
sendfile off;
}
This is running in a Linux VM.