Skip to content

Instantly share code, notes, and snippets.

@PaulGuo
Created August 2, 2012 17:18
Show Gist options
  • Save PaulGuo/3238872 to your computer and use it in GitHub Desktop.
Save PaulGuo/3238872 to your computer and use it in GitHub Desktop.
Nginx Proxy Conf
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