Advertisement
Guest User

nginx.conf

a guest
Feb 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. user userchanged;
  2. worker_processes 1;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5.  
  6. events {
  7. worker_connections 1024;
  8. multi_accept on;
  9. }
  10.  
  11. http {
  12.  
  13. ##
  14. # Basic Settings
  15. ##
  16.  
  17. sendfile on;
  18. tcp_nopush on;
  19. tcp_nodelay on;
  20. keepalive_timeout 15;
  21. types_hash_max_size 2048;
  22. server_tokens off;
  23. client_max_body_size 64m;
  24.  
  25. # server_names_hash_bucket_size 64;
  26. # server_name_in_redirect off;
  27.  
  28. include /etc/nginx/mime.types;
  29. default_type application/octet-stream;
  30.  
  31. ##
  32. # SSL Settings
  33. ##
  34.  
  35. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  36. ssl_prefer_server_ciphers on;
  37.  
  38. ##
  39. # Logging Settings
  40. ##
  41.  
  42. access_log /var/log/nginx/access.log;
  43. error_log /var/log/nginx/error.log;
  44.  
  45. ##
  46. # Gzip Settings
  47. ##
  48.  
  49. gzip on;
  50. gzip_disable "msie6";
  51.  
  52. # gzip_vary on;
  53. gzip_proxied any;
  54. gzip_comp_level 2;
  55. # gzip_buffers 16 8k;
  56. # gzip_http_version 1.1;
  57. gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  58.  
  59. ##
  60. # Cache Settings
  61. ##
  62.  
  63. fastcgi_cache_key "$scheme$request_method$host$request_uri";
  64. add_header Fastcgi-Cache $upstream_cache_status;
  65.  
  66. ##
  67. # Virtual Host Configs
  68. ##
  69.  
  70. include /etc/nginx/conf.d/*.conf;
  71. include /etc/nginx/sites-enabled/*;
  72.  
  73.  
  74. server {
  75. listen 80 default_server;
  76. listen [::]:80 default_server;
  77. server_name _;
  78. return 444;
  79. }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement