Skip to content

Instantly share code, notes, and snippets.

@mnaser
Created December 16, 2012 20:47
Show Gist options
  • Save mnaser/4312753 to your computer and use it in GitHub Desktop.
Save mnaser/4312753 to your computer and use it in GitHub Desktop.
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
include fastcgi_params;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment