OMG you were right. After spending nearly 2 days banging my head against the wall trying NGINX rewrites, and having them not work, the error was a space at the end of config.php .
Hardware and performance
Nginx (fronteend) + Apache2 (backend) + Moodle
This discussion has been locked so you can no longer reply to it.