# /usr/local/nginx/sbin/nginx -c `pwd`nginx.conf -p /dev/shm/
worker_processes 4;

pid /dev/shm/nginx.pid;
error_log /dev/shm/error.log error;

events {
  worker_connections 1024;
}

http {

  access_log /dev/shm/access.log combined;

  sendfile on;
  tcp_nopush on;
  tcp_nodelay on;
  gzip off;

  graphite_config server=10.10.0.1 prefix=test.ssl.nginx frequency=10;

#  client_body_temp_path /dev/shm/client_body_temp;

  server {

    listen 8080;
    server_name _;

    location /keepalive/200 {
      graphite_data keepalive.200;
      return 200;
      keepalive_timeout 15;
      break;
    }

    location /non-keepalive/200 {
      graphite_data non-keepalive.200;
      return 200;
      keepalive_timeout 0;
      break;
    }

    location /keepalive{
      graphite_data keepalive.1m;
      keepalive_timeout 15;
      root /dev/shm;
    }

    location /non-keepalive {
      graphite_data non-keepalive.1m;
      keepalive_timeout 0;
      root /dev/shm;
    }

  }

}
