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

Untitled

By: a guest on May 13th, 2012  |  syntax: None  |  size: 1.44 KB  |  hits: 22  |  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. gedit /opt/nginx/conf/nginx.conf
  2.  
  3.  
  4. #user  nobody;
  5. worker_processes  1;
  6.  
  7. #error_log  logs/error.log;
  8. #pid        logs/nginx.pid;
  9.  
  10.  
  11. events {
  12.     worker_connections  1024;
  13. }
  14.  
  15.  
  16. http {
  17.     #passenger_root /usr/local/rvm/gems/ruby-1.9.1-p378/gems/passenger-2.2.11;
  18.     #passenger_ruby /usr/local/rvm/rubies/ruby-1.9.1-p378/bin/ruby;
  19.  
  20.     passenger_root /usr/local/rvm/gems/ruby-1.8.7-p249/gems/passenger-2.2.11;
  21.     passenger_ruby /usr/local/rvm/rubies/ruby-1.8.7-p249/bin/ruby;
  22.  
  23.  
  24.     include       mime.types;
  25.     default_type  application/octet-stream;
  26.  
  27.     access_log off
  28.  
  29.     sendfile        on;
  30.  
  31.     keepalive_timeout  65;
  32.  
  33.     client_max_body_size 15m;
  34.  
  35.     autoindex on;
  36.  
  37.  
  38.     gzip                on;
  39.     gzip_http_version   1.1;
  40.     gzip_vary           on;
  41.     gzip_comp_level     6;
  42.     gzip_proxied        any;
  43.     gzip_types          text/plain text/css application/json application/x-javascript text/xml
  44.                         application/xml application/xml+rss text/javascript
  45.                         application/x-font-ttf application/x-font font/opentype font/otf font/ttf
  46.                         application/x-font-truetype application/x-font-opentype
  47.                         application/vnd.ms-fontobject image/vnd.microsoft.icon;
  48.     gzip_disable        "MSIE [1-6]\.";
  49.  
  50.     index  index.html index.htm index.php;
  51.  
  52.     charset utf-8;
  53.  
  54.     include fastcgi_params;
  55.     include /opt/nginx/sites-enabled/*;
  56. }