Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 10th, 2012  |  syntax: None  |  size: 1.00 KB  |  hits: 10  |  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. # /etc/nginx/nginx.conf
  2.  
  3. user              nginx;
  4. worker_processes  1;
  5.  
  6. error_log  /var/log/nginx/error.log;
  7. pid        /var/run/nginx.pid;
  8.  
  9.  
  10. events {
  11.     worker_connections  1024;
  12.     use epoll;
  13. }
  14.  
  15.  
  16. http {
  17.     include       /etc/nginx/mime.types;
  18.     default_type  application/octet-stream;
  19.  
  20.     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  21.                       '$status $body_bytes_sent "$http_referer" '
  22.                       '"$http_user_agent" "$http_x_forwarded_for"';
  23.  
  24.     access_log  /var/log/nginx/access.log  main;
  25.  
  26.     sendfile    on;
  27.     tcp_nopush  on;
  28.     tcp_nodelay off;
  29.  
  30.     keepalive_timeout  10;
  31.  
  32.     gzip              on;
  33.     gzip_http_version 1.0;
  34.     gzip_comp_level   2;
  35.     gzip_proxied      any;
  36.     gzip_types text/plain text/css text/xml
  37.                text/javascript application/x-javascript
  38.                application/xml application/xml+rss application/atom+xml;
  39.  
  40.     # Load config files from the /etc/nginx/conf.d directory
  41.     include /etc/nginx/conf.d/*.conf;
  42. }