Just to preface, we're dropping Centos+Apache+Zend Server CE, to switch to Ubuntu+Nginx+PHP-FPM.
I haven't seen anyone post a (good) solution to make /file.php/ and /user/pix.php/ function properly in Moodle. Here's my solution below.
The problem: Nginx considerings file.php in /file.php/whatever.ext to be a folder. This is a problem, as we need it to be considered as a PHP file.
The solution (this goes within your Moodle nginx website config):
# If file isn't found
if (!-e $request_filename) {
set $filephp 1;
}
# If the missing file is a php folder URL
if ($request_filename ~ "\.php/") {
set $filephp "${filephp}1";
}
# Non-existing URL based on PHP script
# Rewrite the URL to the base PHP script requesting
if ($filephp = 11) {
rewrite ^(.*)\.php/.*$ /$1.php last;
break;
}
I'll be posting other tips as I come across them. Anyone else, please post as well