Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.45 KB | None | 0 0
  1. user www-data;
  2. worker_processes 1;
  3. pid /var/run/nginx.pid;
  4.  
  5. events {
  6.     worker_connections 1024;
  7.     # multi_accept on;
  8. }
  9.  
  10. http {
  11.  
  12.     ## Basic Settings ##
  13.  
  14.     client_max_body_size 50m;
  15.     client_header_timeout 5;
  16.     keepalive_timeout 5;
  17.     port_in_redirect off;
  18.     sendfile on;
  19.     server_name_in_redirect off;
  20.     # server_names_hash_bucket_size 64;
  21.     server_tokens off;
  22.     tcp_nopush on;
  23.     tcp_nodelay on;
  24.     types_hash_max_size 2048;
  25.  
  26.     ## GeoIP ##
  27.     geoip_country  /etc/nginx/geoip/GeoIP.dat; # the country IP database
  28.     geoip_city     /etc/nginx/geoip/GeoLiteCity.dat; # the city IP database
  29.  
  30.  
  31.  
  32.     ## MIME ##
  33.  
  34.     include /etc/nginx/mime.types;
  35.     default_type application/octet-stream;
  36.  
  37.  
  38.     ## Logging Settings ##
  39.  
  40.     access_log /var/log/nginx/access.log;
  41.     error_log /var/log/nginx/error.log;
  42.  
  43.  
  44.     ## Gzip Settings ##
  45.     gzip on;
  46.     gzip_disable "msie6";
  47.     gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  48.     gzip_min_length 1400;
  49.     # gzip_vary on;
  50.     # gzip_proxied any;
  51.     # gzip_comp_level 6;
  52.     # gzip_buffers 16 8k;
  53.     # gzip_http_version 1.1;
  54.  
  55.  
  56.     ## nginx-naxsi config ##
  57.     ## Uncomment it if you installed nginx-naxsi
  58.  
  59.     #include /etc/nginx/naxsi_core.rules;
  60.  
  61.  
  62.     ## Virtual Host Configs ##
  63.  
  64.     #include /etc/nginx/conf.d/*.conf;
  65.     include /etc/nginx/sites-enabled/*;
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement