Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. zyphs@ap:~/Downloads$ cat /etc/nginx/nginx.conf
  2. user www-data;
  3. worker_processes auto;
  4. pid /run/nginx.pid;
  5. include /etc/nginx/modules-enabled/*.conf;
  6.  
  7. events {
  8. worker_connections 768;
  9. # multi_accept on;
  10. }
  11.  
  12. http {
  13.  
  14. ##
  15. # Basic Settings
  16. ##
  17.  
  18. sendfile on;
  19. tcp_nopush on;
  20. tcp_nodelay on;
  21. keepalive_timeout 65;
  22. types_hash_max_size 2048;
  23. # server_tokens off;
  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.  
  51. # gzip_vary on;
  52. # gzip_proxied any;
  53. # gzip_comp_level 6;
  54. # gzip_buffers 16 8k;
  55. # gzip_http_version 1.1;
  56. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  57.  
  58. ##
  59. # Virtual Host Configs
  60. ##
  61.  
  62. include /etc/nginx/conf.d/*.conf;
  63. include /etc/nginx/sites-enabled/*;
  64. }
  65.  
  66.  
  67. #mail {
  68. # # See sample authentication script at:
  69. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  70. #
  71. # # auth_http localhost/auth.php;
  72. # # pop3_capabilities "TOP" "USER";
  73. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  74. #
  75. # server {
  76. # listen localhost:110;
  77. # protocol pop3;
  78. # proxy on;
  79. # }
  80. #
  81. # server {
  82. # listen localhost:143;
  83. # protocol imap;
  84. # proxy on;
  85. # }
  86. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement