Advertisement
ramantalkin

Untitled

Jan 31st, 2015
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 3.62 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.         tcp_nodelay on;
  35.         keepalive_timeout 65;
  36.         types_hash_max_size 2048;
  37.         # server_tokens off;
  38.  
  39.         server_names_hash_bucket_size 64;
  40.         # server_name_in_redirect off;
  41.  
  42.         include /etc/nginx/mime.types;
  43.         default_type application/octet-stream;
  44.  
  45.         ##
  46.         # Logging Settings
  47.         ##
  48.  
  49.         access_log /var/log/nginx/access.log;
  50.         error_log /var/log/nginx/error.log;
  51.  
  52.         ##
  53.         # Gzip Settings
  54.         ##
  55.  
  56.         gzip on;
  57.         gzip_disable "msie6";
  58.  
  59.         # gzip_vary on;
  60.         # gzip_proxied any;
  61.         # gzip_comp_level 6;
  62.         # gzip_buffers 16 8k;
  63.         # gzip_http_version 1.1;
  64.         # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  65.  
  66.         ##
  67.         ##
  68.         # Gzip Settings
  69.         ##
  70.  
  71.         gzip on;
  72.         gzip_disable "msie6";
  73.  
  74.         # gzip_vary on;
  75.         # gzip_proxied any;
  76.         # gzip_comp_level 6;
  77.         # gzip_buffers 16 8k;
  78.         # gzip_http_version 1.1;
  79.         # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  80.  
  81.         ##
  82.         # nginx-naxsi config
  83.         ##
  84.         # Uncomment it if you installed nginx-naxsi
  85.         ##
  86.  
  87.         #include /etc/nginx/naxsi_core.rules;
  88.  
  89.         ##
  90.         # nginx-passenger config
  91.         ##
  92.         # Uncomment it if you installed nginx-passenger
  93.         ##
  94.  
  95.         #passenger_root /usr;
  96.         #passenger_ruby /usr/bin/ruby;
  97.  
  98.         ##
  99.         ##
  100.         # Uncomment it if you installed nginx-naxsi
  101.         ##
  102.  
  103.         #include /etc/nginx/naxsi_core.rules;
  104.  
  105.         ##
  106.         # nginx-passenger config
  107.         ##
  108.         # Uncomment it if you installed nginx-passenger
  109.         ##
  110.  
  111.         #passenger_root /usr;
  112.         #passenger_ruby /usr/bin/ruby;
  113.  
  114.         ##
  115.         # Virtual Host Configs
  116.         ##
  117.  
  118.         include /etc/nginx/conf.d/*.conf;
  119.         include /etc/nginx/sites-enabled/*;
  120. }
  121.  
  122.  
  123. #mail {
  124. #       # See sample authentication script at:
  125. #       # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  126. #
  127. #       # auth_http localhost/auth.php;
  128. #       # pop3_capabilities "TOP" "USER";
  129. #       # imap_capabilities "IMAP4rev1" "UIDPLUS";
  130. #
  131. #       server {
  132.         ##
  133.  
  134.         include /etc/nginx/conf.d/*.conf;
  135.         include /etc/nginx/sites-enabled/*;
  136. }
  137.  
  138.  
  139. #mail {
  140. #       # See sample authentication script at:
  141. #       # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  142. #
  143. #       # auth_http localhost/auth.php;
  144. #       # pop3_capabilities "TOP" "USER";
  145. #       # imap_capabilities "IMAP4rev1" "UIDPLUS";
  146. #
  147. #       server {
  148. #               listen     localhost:110;
  149. #               protocol   pop3;
  150. #               proxy      on;
  151. #       }
  152. #
  153. #       server {
  154. #               listen     localhost:143;
  155. #               protocol   imap;
  156. #               proxy      on;
  157. #       }
  158. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement