daily pastebin goal
66%
SHARE
TWEET

nginx.conf

a guest Feb 25th, 2012 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user www-data;
  2. worker_processes 1;
  3. pid /var/run/nginx.pid;
  4.  
  5. events {
  6.   worker_connections 1024;
  7.   # multi_accept on;
  8. }
  9.  
  10. http {
  11.  
  12.   ##
  13.   # Basic Settings
  14.   ##
  15.  
  16.   sendfile on;
  17.   tcp_nopush on;
  18.   tcp_nodelay on;
  19.   keepalive_timeout 2;
  20.   types_hash_max_size 2048;
  21.   server_tokens off;
  22.                                                                                                                                                            
  23.   # server_names_hash_bucket_size 64;
  24.   # server_name_in_redirect off;
  25.  
  26.   include /etc/nginx/mime.types;
  27.   default_type application/octet-stream;
  28.  
  29.   ##  
  30.   # Logging Settings
  31.   ##  
  32.  
  33.   access_log /var/log/nginx/access.log;
  34.   error_log /var/log/nginx/error.log;
  35.  
  36.   ##  
  37.   # Gzip Settings
  38.   ##  
  39.  
  40.   gzip on;
  41.   gzip_disable "msie6";
  42.  
  43.   # gzip_vary on;
  44.   # gzip_proxied any;
  45.   # gzip_comp_level 6;
  46.   # gzip_buffers 16 8k;
  47.   # gzip_http_version 1.1;
  48.   # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  49.  
  50.   ##
  51.   # If HTTPS, then set a variable so it can be passed along.
  52.   ##
  53.  
  54.   map $scheme $server_https {
  55.     default off;
  56.     https on;
  57.   }
  58.  
  59.   ##
  60.   # Virtual Host Configs
  61.   ##
  62.  
  63.   index index.html index.php;
  64.  
  65.   client_max_body_size 512k;
  66.   client_body_buffer_size 128k;
  67.  
  68.   error_page 404 http://google.com;
  69.   include /etc/nginx/conf.d/*;
  70.   include /etc/nginx/sites-enabled/*;
  71. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top