daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Jul 22nd, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # this sets the user nginx will run as,
  2. #and the number of worker processes
  3. user nobody nogroup;
  4. worker_processes 1;
  5.  
  6. # setup where nginx will log errors to
  7. # and where the nginx process id resides
  8. error_log /var/log/nginx/error.log;
  9. pid /var/run/nginx.pid;
  10.  
  11. events {
  12.   worker_connections 1024;
  13.   # set to on if you have more than 1 worker_processes
  14.   accept_mutex off;
  15. }
  16.  
  17. http {
  18.   include /etc/nginx/mime.types;
  19.  
  20.   default_type application/octet-stream;
  21.   access_log /tmp/nginx.access.log combined;
  22.  
  23.   # use the kernel sendfile
  24.   sendfile on;
  25.   # prepend http headers before sendfile()
  26.   tcp_nopush on;
  27.  
  28.   keepalive_timeout 65;
  29.   tcp_nodelay on;
  30.  
  31.   gzip on;
  32.   gzip_disable "MSIE [1-6]\.(?!.*SV1)";
  33.   gzip_types text/plain text/html text/xml text/css
  34.      text/comma-separated-values
  35.      text/javascript application/x-javascript
  36.      application/atom+xml;
  37.  
  38.   # Unicorn-Virtual-Hosts
  39.  
  40. }
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