# http://www.qf.com/a/1.html ==> http://jd.com/a/1.html location / { rewrite .* http://www.baidu.com$request_uri permanent; }