yazdmich

Untitled

Sep 1st, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 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.  
  8. events {
  9. worker_connections 1024;
  10. }
  11.  
  12. http {
  13. include /etc/nginx/mime.types;
  14. default_type application/octet-stream;
  15.  
  16. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  17. '$status $body_bytes_sent "$http_referer" '
  18. '"$http_user_agent" "$http_x_forwarded_for"';
  19.  
  20. access_log /var/log/nginx/access.log main;
  21.  
  22. sendfile on;
  23. #tcp_nopush on;
  24.  
  25. keepalive_timeout 65;
  26.  
  27. #gzip on;
  28.  
  29. include /etc/nginx/conf.d/*.conf;
  30. include /etc/nginx/sites-enabled/*;
  31. server {
  32. location / {
  33. root /data/www;
  34. }
  35.  
  36. location /images/ {
  37. root /data;
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment