Advertisement
niammuddin

default nginx config

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