server { listen 80; server_name baidu.com; rewrite ^/(.*)$ http://google.com/$1 permanent; access_log off; }