Advertisement
csckhw303

nginx.config

Jun 20th, 2019
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.64 KB | None | 0 0
  1. user nginx;
  2. worker_processes 1;
  3.  
  4. error_log /var/log/nginx/error.log warn;
  5. pid /var/run/nginx.pid;
  6.  
  7. events {
  8. worker_connections 1024;
  9. }
  10.  
  11. http {
  12. resolver 10.32.1.155;
  13. default_type application/octet-stream;
  14. include /etc/nginx/mime.types;
  15.  
  16. log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  17.  
  18.                   '$status $body_bytes_sent "$http_referer" '
  19.  
  20.                   '"$http_user_agent" "$http_x_forwarded_for"';
  21.  
  22.  
  23.  
  24. access_log  /var/log/nginx/access.log  main;
  25.  
  26.  
  27.  
  28. sendfile        on;
  29.  
  30. #tcp_nopush     on;
  31.  
  32.  
  33.  
  34. keepalive_timeout  65;
  35.  
  36.  
  37.  
  38. #gzip  on;
  39.  
  40.  
  41.  
  42. include /etc/nginx/conf.d/*.conf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement