niksoft

Untitled

Jan 24th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. #user nobody;
  2. worker_processes 15; #have tried 4 and 8 as well
  3.  
  4. error_log logs/error.log;
  5. #pid logs/nginx.pid;
  6.  
  7.  
  8. events {
  9. worker_connections 1024; # have tried increasing connections while decreasing w_p above
  10. }
  11.  
  12.  
  13. http {
  14. include mime.types;
  15. default_type application/octet-stream;
  16.  
  17. access_log off;
  18.  
  19. #sendfile on;
  20. #tcp_nopush on;
  21.  
  22. keepalive_timeout 20;
  23. #keepalive_timeout 65;
  24. #tcp_nodelay off;
  25.  
  26. gzip on; # doesn't seem to change anything when i disable
  27. gzip_disable "MSIE [1-6]\.(?!.*SV1)";
  28. gzip_proxied any;
  29. gzip_min_length 500;
  30.  
  31. #client_body_buffer_size 16m;
  32.  
  33. server {
  34. listen 1.2.3.4:80;
  35. server_name test*;
  36.  
  37. location / {
  38.  
  39. tcp_nodelay on; #doesnt make a difference when i turn this off
  40. tcp_nopush on;
  41.  
  42. #open_file_cache max=1000 inactive=20s;
  43. #open_file_cache_valid 30s;
  44. #open_file_cache_min_uses 2;
  45. #open_file_cache_errors off;
  46.  
  47. rewrite ^/(.*)/([a-zA-Z0-9]*) /$2 last;
  48. root /media/ram;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment