mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-04 18:00:20 +00:00
21 lines
371 B
Nginx Configuration File
21 lines
371 B
Nginx Configuration File
|
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;
|
||
|
}
|
||
|
}
|
||
|
|