Skip to content

Instantly share code, notes, and snippets.

@rynop
Created April 17, 2011 18:44
Show Gist options
  • Save rynop/924343 to your computer and use it in GitHub Desktop.
Save rynop/924343 to your computer and use it in GitHub Desktop.
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
use epoll;
}
some others from my server {
keepalive_timeout 0;
fastcgi_read_timeout 90;
fastcgi_send_timeout 90;
...
location ~ \.php$ {
# fastcgi_pass unix:/tmp/php-fastcgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_intercept_errors on; # to support 404s for PHP files not found
include fastcgi_params;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment