diff --git a/README.md b/README.md index bab8d159..7c63439f 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,9 @@ [![Netlify Status](https://api.netlify.com/api/v1/badges/b1b93b02-f278-440b-ae1b-304e9f4c4ab5/deploy-status)](https://app.netlify.com/sites/toha/deploys) [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fhugo-toha%2Fhugo-toha.github.io%2Fbadge%3Fref%3Dsource&style=flat)](https://actions-badge.atrox.dev/hugo-toha/hugo-toha.github.io/goto?ref=source) ![Repository Size](https://img.shields.io/github/repo-size/hugo-toha/hugo-toha.github.io) ![Last Commit](https://img.shields.io/github/last-commit/hugo-toha/hugo-toha.github.io) ![Open Pull Requests](https://img.shields.io/github/issues-pr/hugo-toha/hugo-toha.github.io?color=yellowgreen) [![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/b7cb60ab/hugo-toha.github.io) A Customized Hugo static site with Toha theme. + +docker build -t stitts5401/hugo-portfolio:latest . + +docker run -it stitts5401/hugo-portfolio:latest cat /etc/nginx/conf.d/default.conf + +docker run -it stitts5401/hugo-portfolio:latest ls -l /usr/share/nginx/site \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index 0c2db4f2..7b30018e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -6,6 +6,12 @@ server { index index.html; location / { - try_files $uri $uri/ =404; + try_files $uri $uri/ /index.html; + } + + # Custom error page for 404 errors + error_page 404 /404.html; + location = /404.html { + internal; } }