server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; access_log off; error_log off; root /var/www; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name _; location / { index index.php; } location ~ \.php$ { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/tmp/php5-fpm.sock; fastcgi_read_timeout 120000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name; } }