From a2f34bd7840361ecbaea3e440194c0e592fd776e Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 31 Jul 2023 17:32:25 +1000 Subject: [PATCH] actions: Fix subpages --- Dockerfile | 3 ++- default.conf | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 default.conf diff --git a/Dockerfile b/Dockerfile index fee9684..6449785 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,3 @@ FROM nginx:alpine -COPY . /usr/share/nginx/html \ No newline at end of file +COPY . /usr/share/nginx/html +COPY default.conf /etc/nginx/conf.d/default.conf \ No newline at end of file diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..673a253 --- /dev/null +++ b/default.conf @@ -0,0 +1,14 @@ +server { + listen 80; + listen [::]:80; + server_name localhost; + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri.html; + } + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } +} \ No newline at end of file