From e01c18039c5b663b89aeab4395bec71b4f19461f Mon Sep 17 00:00:00 2001 From: xqzr <34030394+xqzr@users.noreply.github.com> Date: Tue, 30 Aug 2022 00:23:48 +0800 Subject: [PATCH] Update nginx.conf --- VLESS-WSS-Nginx/nginx.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/VLESS-WSS-Nginx/nginx.conf b/VLESS-WSS-Nginx/nginx.conf index 991eee6..8850adb 100644 --- a/VLESS-WSS-Nginx/nginx.conf +++ b/VLESS-WSS-Nginx/nginx.conf @@ -12,10 +12,11 @@ server { # 在 location 后填写 /你的 path location /你的 path { - if ($http_upgrade != "websocket") { - return 404; - } + if ($http_upgrade != "websocket") { + return 404; + } proxy_pass http://unix:/dev/shm/Xray-VLESS-WSS-Nginx.socket; + proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";