Guest User

nginx.conf

a guest
Aug 16th, 2014
720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. user www-data;
  2. worker_processes 4;
  3. pid /var/run/nginx.pid;
  4.  
  5. events {
  6. worker_connections 768;
  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 65;
  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. client_max_body_size 100m;
  38.  
  39. client_header_timeout 600;
  40.  
  41. client_body_timeout 600;
  42.  
  43. fastcgi_read_timeout 600;
  44.  
  45.  
  46. ##
  47. # Gzip Settings
  48. ##
  49.  
  50. gzip on;
  51. gzip_disable "msie6";
  52.  
  53. # gzip_vary on;
  54. # gzip_proxied any;
  55. # gzip_comp_level 6;
  56. # gzip_buffers 16 8k;
  57. # gzip_http_version 1.1;
  58. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  59.  
  60. ##
  61. # nginx-naxsi config
  62. ##
  63. # Uncomment it if you installed nginx-naxsi
  64. ##
  65.  
  66. #include /etc/nginx/naxsi_core.rules;
  67.  
  68. ##
  69. # nginx-passenger config
  70. ##
  71. # Uncomment it if you installed nginx-passenger
  72. ##
  73.  
  74. #passenger_root /usr;
  75. #passenger_ruby /usr/bin/ruby;
  76.  
  77. ##
  78. # Virtual Host Configs
  79. ##
  80.  
  81. include /etc/nginx/conf.d/*.conf;
  82. include /etc/nginx/sites-enabled/*;
  83. }
  84.  
  85.  
  86. #mail {
  87. # # See sample authentication script at:
  88. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  89. #
  90. # # auth_http localhost/auth.php;
  91. # # pop3_capabilities "TOP" "USER";
  92. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  93. #
  94. # server {
  95. # listen localhost:110;
  96. # protocol pop3;
  97. # proxy on;
  98. # }
  99. #
  100. # server {
  101. # listen localhost:143;
  102. # protocol imap;
  103. # proxy on;
  104. # }
  105. #}
Advertisement
Add Comment
Please, Sign In to add comment