From 75687a3c1519ee7cad590d5e5afc30552597b863 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Fri, 27 Aug 2021 13:57:38 +0800 Subject: [PATCH] modify nginx conf --- Dockerfile | 4 ++-- ping.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2d307f9c..b4fd3207 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ FROM nginx:alpine -COPY ping.conf /etc/nginx/conf.d/ping.conf -COPY dist /var/www/html \ No newline at end of file +COPY ping.conf /etc/nginx/conf.d/default.conf +COPY dist /usr/share/nginx/html \ No newline at end of file diff --git a/ping.conf b/ping.conf index 5dec3130..29a59371 100644 --- a/ping.conf +++ b/ping.conf @@ -6,7 +6,7 @@ server { #access_log /var/log/nginx/host.access.log main; location / { - root /var/www/html; + root /usr/share/nginx/html; index index.html index.htm; try_files $uri $uri/ /index.html; }