Add nginx.conf for proper static site serving
This commit is contained in:
parent
77bf755a37
commit
478b1f5b75
17
nginx.conf
Normal file
17
nginx.conf
Normal file
@ -0,0 +1,17 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _; # Listen for any server name
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# Optional: You can add custom error pages if you create them in your 'static' folder
|
||||
# error_page 404 /404.html;
|
||||
# location = /404.html {
|
||||
# internal;
|
||||
# }
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user