Nginx 404 while it should just proxy pass to php-fpm

view story

http://serverfault.com – I have a simple nginx config that used to pass all requests to /site/index.php. After upgrading to ubuntu 12.04 this config doesn't work anymore. server { listen 80; server_name site.com; root /site/; access_log /var/log/nginx/site.log; location / { fastcgi_pass; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /site/index.php; include fastcgi_params; } } The rule fastcgi_param SCRIPT_FILENAME /site/index.php; used to send everything matching 'location /' to index.php but no (HowTos)