Bruno.GJ
banned
Code:
location / {
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
try_files $uri $uri/ /api.php;
}
location /admin {
try_files $uri /admin/index.php?$args;
}
I hope they work for you too, I used nginx 1.0.10 + php-fpm
cheers
The admin area working as it should, the api works and let me upload remotely with a firefox addon.