Skip to content

Instantly share code, notes, and snippets.

@hisapy
Created May 28, 2012 23:04
Show Gist options
  • Save hisapy/2821567 to your computer and use it in GitHub Desktop.
Save hisapy/2821567 to your computer and use it in GitHub Desktop.
location ~ \.php$ {
try_files $uri =404;
fastcgi_index index.php;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_pass php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
upstream php {
server unix:/var/run/php5-fpm.sock;
# server 127.0.0.1:9000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment