location /baidu/ #二级目录 https://www.cmliu.net/baidu { proxy_redirect off; proxy_pass http://www.baidu.com/; #https与http要分清,最后的/一定不能少 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host www.baidu.com; #发送域名 默认原域名就用$http_host }
bash <(curl -s -L https://git.io/v2ray.sh)