Ok, as expected, this was extremely stupid. location /app { index index.php; root /var/www; } When specifying location, the path should be set with root NOT containing the /location Posted at Nginx Forum: https://forum.nginx.org/read.php?2,291334,291337#msg-291337