I'm trying to run a CakePHP app from within a subfolder on Nginx, but the static files are not being found and are instead being passed to the app controller. Here's my current config:
location /uniquetv {
index index.php index.html;
if (-f $request_filename) {
break;
}
if (!-e $request_filename) {
rewrite ^/uniquetv(.+)$ /uniquetv/webroot/$1 last;
break;
}
}
location /uniquetv/webroot {
index index.php;
if (!-e $request_filename) {
rewrite ^/uniquetv/webroot/(.+)$ /uniquetv/webroot/index.php?url=$1 last;
break;
}
}
Any ideas? :)