限定指定IP请求重定向所有非192.168.0.*网段的IP到百度if ( $http_x_forwarded_for !~ 192\.168\.0\..* ){ rewrite ^(.*)$...