nginx: Add config for 404 page.
This commit is contained in:
parent
7eaa986423
commit
7844028dd6
2 changed files with 17 additions and 0 deletions
|
|
@ -2,3 +2,4 @@ FROM klakegg/hugo:onbuild AS hugo
|
|||
|
||||
FROM nginx:alpine-slim
|
||||
COPY --from=hugo /target /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
16
nginx.conf
Normal file
16
nginx.conf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
error_log /var/log/nginx/error.log notice;
|
||||
pid /var/run/nginx.pid;
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
http {
|
||||
server {
|
||||
root /usr/share/nginx/html;
|
||||
location / {
|
||||
error_page 404 /404.html;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue