Hands-on task
This task is step 6 of the course “nginx basics”
SPA: All Routes to index.html
For a single-page application, configure nginx (port 80) so that any non-existent path serves index.html (with status 200) rather than 404 — then client-side routing will work.
Reference:nginx
What you'll practise:
- nginx
- try_files
- spa
- client-side routing
- location