SHARE
TWEET

nginx.conf

a guest Jan 4th, 2014 20 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user www-data;
  2. worker_processes 4;
  3. pid /var/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.         client_max_body_size 10M;
  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.         # Logging Settings
  32.         ##
  33.  
  34.         access_log /var/log/nginx/access.log;
  35.         error_log /var/log/nginx/error.log;
  36.  
  37.         ##
  38.         # Gzip Settings
  39.         ##
  40.  
  41.         gzip on;
  42.         gzip_disable "msie6";
  43.         # server_names_hash_bucket_size 64;
  44.         # server_name_in_redirect off;
  45.  
  46.         include /etc/nginx/mime.types;
  47.         default_type application/octet-stream;
  48.  
  49.         ##
  50.         # Logging Settings
  51.         ##
  52.  
  53.         access_log /var/log/nginx/access.log;
  54.         error_log /var/log/nginx/error.log;
  55.  
  56.         ##
  57.         # Gzip Settings
  58.         ##
  59.  
  60.         gzip on;
  61.         gzip_disable "msie6";
  62.  
  63.         # gzip_vary on;
  64.         # gzip_proxied any;
  65.         # gzip_comp_level 6;
  66.         # gzip_buffers 16 8k;
  67.         # gzip_http_version 1.1;
  68.         # gzip_types text/plain text/css application/json application/x-javascript text/xm$
  69.  
  70.         ##
  71.         # nginx-naxsi config
  72.         ##
  73.         # Uncomment it if you installed nginx-naxsi
  74.         ##
  75.  
  76.         #include /etc/nginx/naxsi_core.rules;
  77.  
  78.         ##
  79.         # nginx-passenger config
  80.         ##
  81.         # Uncomment it if you installed nginx-passenger
  82.         ##
  83.  
  84.         #passenger_root /usr;
  85.         # gzip_proxied any;
  86.         # gzip_comp_level 6;
  87.         # gzip_buffers 16 8k;
  88.         # gzip_http_version 1.1;
  89.         # gzip_types text/plain text/css application/json application/x-javascript text/xm$
  90.  
  91.         ##
  92.         # nginx-naxsi config
  93.         ##
  94.         # Uncomment it if you installed nginx-naxsi
  95.         ##
  96.  
  97.         #include /etc/nginx/naxsi_core.rules;
  98.  
  99.         ##
  100.         # nginx-passenger config
  101.         ##
  102.         # Uncomment it if you installed nginx-passenger
  103.         ##
  104.  
  105.         #passenger_root /usr;
  106.         #passenger_ruby /usr/bin/ruby;
  107.  
  108.         ##
  109.         # Virtual Host Configs
  110.         ##
  111.  
  112.         include /var/www/wp-content/plugins/better-wp-security/rules.conf;
  113.         include /etc/nginx/conf.d/*.conf;
  114.         include /etc/nginx/sites-enabled/*;
  115. }
  116.  
  117.  
  118. #mail {
  119. #       # See sample authentication script at:
  120. #       # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  121. #
  122. #       # auth_http localhost/auth.php;
  123. #       # pop3_capabilities "TOP" "USER";
  124. #       # imap_capabilities "IMAP4rev1" "UIDPLUS";
  125. #
  126. #       server {
  127. #               listen     localhost:110;
  128. #               protocol   pop3;
  129. #               proxy      on;
  130. #       }
  131. #
  132. #       server {
  133. #               listen     localhost:143;
  134. #               protocol   imap;
  135. #               proxy      on;
  136. #       }
  137. #}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top