Guest User

nginx.conf

a guest
Jul 19th, 2011
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user nginx nginx;
  2. worker_processes 1;
  3.  
  4. error_log /var/log/nginx/error_log info;
  5.  
  6. events {
  7. worker_connections 1024;
  8. use epoll;
  9. }
  10.  
  11. http {
  12. include /etc/nginx/mime.types;
  13. default_type application/octet-stream;
  14.  
  15. log_format main
  16. '$remote_addr - $remote_user [$time_local] '
  17. '"$request" $status $bytes_sent '
  18. '"$http_referer" "$http_user_agent" '
  19. '"$gzip_ratio"';
  20.  
  21. client_header_timeout 10m;
  22. client_body_timeout 10m;
  23. send_timeout 10m;
  24.  
  25. connection_pool_size 256;
  26. client_header_buffer_size 1k;
  27. large_client_header_buffers 4 2k;
  28. request_pool_size 4k;
  29. gzip on;
  30. gzip_min_length 1100;
  31. gzip_buffers 4 8k;
  32. gzip_types text/plain;
  33.  
  34. output_buffers 1 32k;
  35. postpone_output 1460;
  36.  
  37. sendfile on;
  38. tcp_nopush on;
  39. tcp_nodelay on;
  40.  
  41. keepalive_timeout 75 20;
  42.  
  43. ignore_invalid_headers on;
  44.  
  45. index index.html;
  46.  
  47. include /etc/nginx/vhosts.d/*;
  48.  
  49. server {
  50. listen 127.0.0.1;
  51. server_name localhost;
  52.  
  53. access_log /var/log/nginx/localhost.access_log main;
  54. error_log /var/log/nginx/localhost.error_log info;
  55.  
  56. root /var/www/localhost/htdocs;
  57. }
  58.  
  59.  
  60. # SSL example
  61. #server {
  62. # listen 127.0.0.1:443;
  63. # server_name localhost;
  64.  
  65. # ssl on;
  66. # ssl_certificate /etc/ssl/nginx/nginx.pem;
  67. # ssl_certificate_key /etc/ssl/nginx/nginx.key;
  68.  
  69. # access_log /var/log/nginx/localhost.ssl_access_log main;
  70. # error_log /var/log/nginx/localhost.ssl_error_log info;
  71.  
  72. # root /var/www/localhost/htdocs;
  73. #}
  74. }
RAW Paste Data