Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 5th, 2013  |  syntax: None  |  size: 0.87 KB  |  views: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. user www www;
  2. worker_processes 2;
  3. error_log /var/log/nginx/error.log crit;
  4. pid /var/run/nginx.pid;
  5. events {
  6.     worker_connections 1024;
  7. }
  8. http {
  9.  
  10.  upstream backend {
  11.          server unix:/tmp/php-fpm.sock;
  12.  }
  13.     include /usr/local/etc/nginx/mime.types;
  14.     default_type application/octet-stream;
  15.     access_log off;
  16.     server_tokens off;
  17.     sendfile on;
  18.     client_max_body_size 200m;
  19.     client_body_buffer_size 1m;
  20.     keepalive_timeout 1;
  21.     port_in_redirect off;
  22.     gzip on;
  23.     gzip_http_version 1.1;
  24.     gzip_vary on;
  25.     gzip_comp_level 6;
  26.     gzip_proxied any;
  27.     gzip_types text/plain text/css application/json application/x-javascript application/xml application/xml+rss text/javascript;
  28.     gzip_buffers 16 8k;
  29.     gzip_disable "MSIE [1-6].(?!.*SV1)";
  30.     include /usr/local/etc/nginx/conf.d/*.conf;
  31. }
  32.  
  33. And sample config for one domain: