Created
August 2, 2012 17:18
-
-
Save PaulGuo/3238872 to your computer and use it in GitHub Desktop.
Nginx Proxy Conf
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
server { | |
listen 8888; | |
# resolver 8.8.8.8; | |
location / { | |
root /Users/paulguo/Repos/trip-html5; | |
if ($request_uri ~* \/$ ){ | |
proxy_pass http://$http_host; | |
} | |
if (!-e $request_filename) { | |
proxy_pass http://$http_host; | |
} | |
if ($http_host = a.tbcdn.cn){ | |
proxy_pass http://10.232.135.52; | |
} | |
if ($http_host = triph5.waptest.taobao.com){ | |
proxy_pass http://127.0.0.1:8080; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment