diff --git a/Dockerfile b/Dockerfile index f763fcf..a5f6284 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,3 +3,4 @@ FROM nginx:latest COPY privkey.pem /etc/nginx/ COPY fullchain.pem /etc/nginx/ COPY default.conf /etc/nginx/conf.d/ +COPY index.html /usr/share/nginx/html/ diff --git a/default.conf b/default.conf index ee0bed2..3bd626a 100644 --- a/default.conf +++ b/default.conf @@ -5,6 +5,9 @@ server { server_name _; # managed by Certbot client_max_body_size 70M; + location /404 { + try_files $uri $uri/ /index.html; + } location / { if ($host = quiz.pena.digital) { diff --git a/index.html b/index.html new file mode 100644 index 0000000..25c7c8b --- /dev/null +++ b/index.html @@ -0,0 +1,188 @@ + + + +
+ + ++ Страница не найдена +
++ Посетите главную страницу, возможно вы найдете ее +
+