Recently began to study Nginx.
Made the setting for this link http://help.ubuntu.ru/wiki/nginx-phpfpm
votan@votan-N53SN:/etc/nginx/sites-enabled$ cat example.com include common/upstream; server { listen 80; listen 443 ssl; root /var/www/html; index index.php index.html index.htm; server_name example.com www.example.com; client_max_body_size 200m; fastcgi_buffers 64 4K; location "/" { index index.php index.html index.htm; # варианты индексных файлов если имя файла в запросе не задано try_files $uri $uri/ =404; # проверить есть ли файл из запроса на диске, иначе - вернуть ошибку 404 } } The server starts but when you go to example.com or localhost, this page comes out. 
Under the link localhost / index.php - the index.php file is downloading
Php-fpm / etc / nginx / common / php-fpm
# Настройки порта или сокета PHP-FPM производятся в файле "/etc/php5/fpm/pool.d/www.conf" fastcgi_pass php-fpm; # Порядок важен - строчка "include fastcgi_params" должна быть первой include fastcgi_params; fastcgi_split_path_info ^(.+?\.php)(/.*)?$; # Вместо переменной "$document_root" можно указать адрес к корневому каталогу сервера и это желательно (см. http://wiki.nginx.org/Pitfalls) fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name; # См. http://trac.nginx.org/nginx/ticket/321 set $path_info $fastcgi_path_info; fastcgi_param PATH_INFO $path_info; # Additional variables fastcgi_param SERVER_ADMIN email@example.com; fastcgi_param SERVER_SIGNATURE nginx/$nginx_version; fastcgi_index index.php;