From e165c0195b9b3813dc97300c24552b1569550527 Mon Sep 17 00:00:00 2001 From: "yadong.zhang" Date: Mon, 21 Jun 2021 18:54:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20nginx=20=E7=9A=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/nginx/nginx-local-file-storage-80.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/nginx/nginx-local-file-storage-80.conf b/docs/nginx/nginx-local-file-storage-80.conf index 9cd0e89..5a5a6b5 100644 --- a/docs/nginx/nginx-local-file-storage-80.conf +++ b/docs/nginx/nginx-local-file-storage-80.conf @@ -1,11 +1,11 @@ server { listen 80; server_name 改成自己的域名; - root 改成自己的文件目录;; - + root 改成自己的文件目录; + location ^~ / { try_files $uri $uri/ /index.html; - proxy_set_header Cookie $http_cookie; + proxy_set_header Cookie $http_cookie; proxy_set_header Host $host:$server_port; } } -- GitLab