Add nginx for main website
This commit is contained in:
parent
2e58dde610
commit
b8e593b466
2 changed files with 44 additions and 0 deletions
20
docker/korhonen.cc/nginx.conf
Normal file
20
docker/korhonen.cc/nginx.conf
Normal file
|
@ -0,0 +1,20 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /korhonen.cc;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
# Use hugo 404 page
|
||||
error_page 404 /404.html;
|
||||
|
||||
# Redirect 5xx to standard error pages
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue