Skip to content

Instantly share code, notes, and snippets.

@kindy
Created December 5, 2012 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kindy/4216660 to your computer and use it in GitHub Desktop.
Save kindy/4216660 to your computer and use it in GitHub Desktop.
events {
worker_connections 1024;
}
http {
upstream xx {
server 127.0.0.1:8003;
server 127.0.0.1:8003;
}
server {
listen 8003;
return 444;
}
server {
listen 8002;
location = /t {
proxy_pass http://xx;
}
}
}
# the request will wait for ever
# curl -sv 127.0.0.1:8002/t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment