Skip to content

Commit ef2b1e6

Browse files
authored
Add 404.html to try_files (#3)
1 parent 144cf23 commit ef2b1e6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM nginx:alpine-slim
22

33
ENV TZ=UTC
44

5-
LABEL org.opencontainers.image.source="https://github.com//docker-nginx-static"
5+
LABEL org.opencontainers.image.source="https://github.com/cssnr/docker-nginx-static"
66
LABEL org.opencontainers.image.description="Docker Nginx Static"
77
LABEL org.opencontainers.image.authors="cssnr"
88

src/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ http {
2626
root /static;
2727
index NGINX_INDEX;
2828
autoindex on;
29-
try_files $uri $uri.html $uri/ =404;
29+
try_files $uri $uri.html $uri/ /404.html =404;
3030
include /etc/nginx/conf.d/location.*;
3131
}
3232
}

0 commit comments

Comments
 (0)