user apache; worker_processes 8; #number of cores in our server cpu error_log logs/error.log; events { worker_connections 100024; #number of worker threads to run. Threads * Cores = Concurrent users supported } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; push_max_reserved_memory 250M; server { listen 80; server_name 127.0.0.1; # serve the feed ourselves location /feed { push_channel_group pushmodule_chat; location /feed/publish { set $push_channel_id chatroomname; #static channel id push_publisher; push_message_timeout 5m; push_message_buffer_length 0; } location /feed/subscribe { # push_authorized_channels_only on; set $push_channel_id chatroomname; #static channel id push_subscriber; send_timeout 3600; #so that nginx won't drop connections willy-nilly } } location = /test.html { root html; } } }