modify nginx conf

This commit is contained in:
liangping 2021-08-27 13:57:38 +08:00
parent 638c9072e7
commit 75687a3c15
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
FROM nginx:alpine
COPY ping.conf /etc/nginx/conf.d/ping.conf
COPY dist /var/www/html
COPY ping.conf /etc/nginx/conf.d/default.conf
COPY dist /usr/share/nginx/html

View File

@ -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;
}