Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
global log 127.0.0.1 local0 #notice #log 127.0.0.1 local1 alert daemon nbproc 1 maxconn 32000 ulimit-n 65536 # and uid, gid, daemon, maxconn... defaults # setup logging log global option tcplog option httplog option dontlognull option allbackups # setup statistics pages stats enable stats uri /something_stats stats refresh 10 stats auth blahblah mode http retries 20 option abortonclose option redispatch timeout connect 120s # time waiting for backend server to accept timeout client 80s # data from client (browser) timeout server 120s # data from server (mongrel) frontend webservers *:80 reqitarpit (something\/download) reqtarpit (121\.125\.69) mode http option httpclose acl dyn_update path_beg /something/update acl non_toxic url_sub version=1 acl dyn_fast path_beg /something/end /something/heartbeat acl dyn_curl path_beg /something/something0 /something/start acl dyn_other path_beg /something/something2 /something something/something3 /something4/ /something5/ acl dyn_other path / acl mobile hdr_beg(host) -i d. # acl priority_full dst_conn gt 10 # use_backend everything if priority_full use_backend fast_mongrels if dyn_update non_toxic use_backend fast_mongrels if dyn_curl use_backend mongrels if dyn_fast use_backend mongrels if dyn_other !mobile use_backend mongrels if METH_POST default_backend nginx maxconn 1200 backend nginx mode http option httpchk HEAD /something.html balance roundrobin server localhost-http 127.0.0.1:8080 weight 100 check inter 10s fastinter 1s fall 3 server webapp01-http xx.x.x.x:8080 weight 10 check inter 10s fastinter 3s fall 3 backup server webapp02-http xx.x.x.x:8080 weight 10 check inter 10s fastinter 3s fall 3 backup server webapp04-http xx.x.x.x:8080 weight 10 check inter 10s fastinter 3s fall 2 backup
This paste will be private.
From the Design Piracy series on my blog: