upstream ri.com {
#ip_hash;
server ;
server ;
}
upstream mp4.com{
server ;
}
server {
listen 80;
server_name www.hah.xin;
location / {
#反向代理的地址
proxy_pass http://ri.com;
if ($request_uri ~* ".*.(js|css|gif|jpg|jpeg|png|bmp|swf|mp4)$")
{
proxy_pass http://mp4.com;
}
}
}