nginx转发的过程中过滤掉 只要不是以http://www.xx-xxxxx.com开头的来源。 全都过滤掉 比如一些来自IP的访问和为空的访问 全都不要, 用正则表达式怎么表示那个域名?
直接用 server_name来定义主机头 www.*.com
if ( $host != 'www.cn-camm.com' ){ rewrite ^/(.*)$ http://www.baidu.cn/$1 permanent; }