Created
December 5, 2012 15:39
-
-
Save kindy/4216660 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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