Guest User

Untitled

a guest
Mar 19th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1.  
  2. user nginx;
  3. worker_processes 1;
  4.  
  5. error_log /var/log/nginx/error.log warn;
  6. pid /var/run/nginx.pid;
  7.  
  8.  
  9. events {
  10. worker_connections 1024;
  11. }
  12.  
  13.  
  14. http {
  15. proxy_cache_path /opt/hopglass_nginx_cache levels=1:2 keys_zone=hopglass:10m inactive=1h max_size=1g;
  16. include /etc/nginx/mime.types;
  17. default_type application/octet-stream;
  18.  
  19. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  20. '$status $body_bytes_sent "$http_referer" '
  21. '"$http_user_agent" "$http_x_forwarded_for"';
  22.  
  23. access_log /var/log/nginx/access.log main;
  24.  
  25. sendfile on;
  26. #tcp_nopush on;
  27.  
  28. keepalive_timeout 65;
  29.  
  30. #gzip on;
  31.  
  32. include /etc/nginx/conf.d/*.conf;
  33. include /etc/nginx/sites-enabled/*;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment