Skip to content

Instantly share code, notes, and snippets.

@chsh
Created September 24, 2012 14:15
Show Gist options
  • Save chsh/3776159 to your computer and use it in GitHub Desktop.
Save chsh/3776159 to your computer and use it in GitHub Desktop.
Partial nginx conf for php-fpm.
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/tmp/php-fpm.www.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SERVER_PORT 80;
fastcgi_param SERVER_NAME yourserver.com;
expires 2h;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment