Advertisement
Guest User

nginx conf

a guest
Apr 2nd, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. user www-data;
  2. worker_processes 2;
  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 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. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  34. '$status $body_bytes_sent "$http_referer" '
  35. '"$http_user_agent" "$http_x_forwarded_for"';
  36.  
  37. access_log /var/log/nginx/access.log main;
  38. error_log /var/log/nginx/error.log;
  39.  
  40. ##
  41. # Gzip Settings
  42. ##
  43.  
  44. gzip on;
  45. gzip_disable "msie6";
  46.  
  47. # gzip_vary on;
  48. # gzip_proxied any;
  49. # gzip_comp_level 6;
  50. # gzip_buffers 16 8k;
  51. # gzip_http_version 1.1;
  52. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  53.  
  54. ##
  55. # nginx-naxsi config
  56. ##
  57. # Uncomment it if you installed nginx-naxsi
  58. ##
  59.  
  60. #include /etc/nginx/naxsi_core.rules;
  61.  
  62. ##
  63. # nginx-passenger config
  64. ##
  65. # Uncomment it if you installed nginx-passenger
  66. ##
  67.  
  68. #passenger_root /usr;
  69. #passenger_ruby /usr/bin/ruby;
  70.  
  71. ##
  72. # PHP-FPM Upstream Socket
  73. ##
  74.  
  75. upstream php-fpm {
  76. server unix:/var/run/php5-fpm.sock;
  77. }
  78.  
  79. ##
  80. # Virtual Host Configs
  81. ##
  82.  
  83. include /etc/nginx/conf.d/*.conf;
  84. include /etc/nginx/sites-enabled/*;
  85. }
  86.  
  87.  
  88. #mail {
  89. # # See sample authentication script at:
  90. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  91. #
  92. # # auth_http localhost/auth.php;
  93. # # pop3_capabilities "TOP" "USER";
  94. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  95. #
  96. # server {
  97. # listen localhost:110;
  98. # protocol pop3;
  99. # proxy on;
  100. # }
  101. #
  102. # server {
  103. # listen localhost:143;
  104. # protocol imap;
  105. # proxy on;
  106. # }
  107. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement