Skip to content

Instantly share code, notes, and snippets.

@jeffbeard
Created September 5, 2011 15:26
Show Gist options
  • Select an option

  • Save jeffbeard/1195248 to your computer and use it in GitHub Desktop.

Select an option

Save jeffbeard/1195248 to your computer and use it in GitHub Desktop.
nginx configuration file
user www-data;
worker_processes 5;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
access_log /var/log/nginx/access.log;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_comp_level 1;
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
## PHP-FPM service
upstream backend {
server unix:/var/run/php5-fpm.sock;
}
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment