From 70434c7a2f8d2d14dccfd329dedb79a39aec9eb1 Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 24 Aug 2018 13:36:34 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'nginx.conf'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx.conf b/nginx.conf index 71974e8..1e86f9b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -8,11 +8,11 @@ server { root /data; index index.html; + location / { + try_files $uri $uri/ /index.html; + } + location ^~ $$prefix$$/ { alias /data/; } - - location / { - try_files $uri $uri/ /index.html; - } }