1
0
forked from sites/cdn

rm default nginx page

This commit is contained in:
2025-01-23 13:30:37 +01:00
parent efa3fa567b
commit 5301b7831c
2 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,6 @@
FROM nginx:latest FROM nginx:latest
COPY src /usr/share/nginx/html COPY src /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]

14
nginx.conf Normal file
View File

@ -0,0 +1,14 @@
server {
listen 80;
server_name localhost;
location / {
try_files $uri $uri/ =404;
}
error_page 404 = @empty404;
location @empty404 {
return 404;
}
}