12 lines
332 B
Nginx Configuration File
12 lines
332 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
|
|
root /usr/share/nginx/html; # The root directory of your static files
|
|
index index.html; # The default index file
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html; # Try to serve the requested file or fallback to /index.html (React Router)
|
|
}
|
|
|
|
error_log /var/log/nginx/error.log;
|
|
} |