依旧是朋友问到,然后给他解答。大体上就是发给我一个类似如下的配置: location / { set $hello "https://www.baidu.com"; if ($cookie_pass = "7") { set $hello "https://www.google.com"; } proxy_pass $hello; } 配置测试没错,但实际访问报如下错误: The page you are looking for is temporarily unavailable. Please try again later.