Skip to content

Instantly share code, notes, and snippets.

@ruo91
Created October 8, 2013 12:34
Show Gist options
  • Save ruo91/6884012 to your computer and use it in GitHub Desktop.
Save ruo91/6884012 to your computer and use it in GitHub Desktop.
php fpm config
# php
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment