Advertisement
Guest User

Untitled

a guest
Dec 5th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.55 KB | None | 0 0
  1. user sasha;
  2. worker_processes auto;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5.  
  6. events {
  7.     worker_connections 768;
  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 65;
  21.     types_hash_max_size 2048;
  22.     # server_tokens off;
  23.  
  24.     # server_names_hash_bucket_size 64;
  25.     # server_name_in_redirect off;
  26.  
  27.     include /etc/nginx/mime.types;
  28.     default_type application/octet-stream;
  29.  
  30.     ##
  31.     # SSL Settings
  32.     ##
  33.  
  34.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  35.     ssl_prefer_server_ciphers on;
  36.  
  37.     ##
  38.     # Logging Settings
  39.     ##
  40.  
  41.     access_log /var/log/nginx/access.log;
  42.     error_log /var/log/nginx/error.log;
  43.  
  44.     ##
  45.     # Gzip Settings
  46.     ##
  47.  
  48.     gzip on;
  49.     gzip_disable "msie6";
  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