Nginx 1 · Servers and static files
Serve a single-page app
Send unknown paths to index.html so client-side routing works.
location / {
try_files $uri $uri/ /index.html;
}
Official Nginx 1 documentation
Nginx 1 · Servers and static files
Send unknown paths to index.html so client-side routing works.
location / {
try_files $uri $uri/ /index.html;
}
Official Nginx 1 documentation
Was this page helpful?