server { listen 80; server_name mermaid; location / { root /usr/share/nginx/html; # Fallback to index.html for other paths try_files $uri /index.html; } }