Skip to content

fix: add try_files directive to nginx config for SPA routing #1679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ercnshngit
Copy link

- Add try_files $uri $uri/ /index.html to nginx configuration
- Fix 404 errors on page refresh for Vite SPA applications
- Resolves Dokploy#1650
@ercnshngit ercnshngit requested a review from Siumauricio as a code owner April 11, 2025 10:17
@Siumauricio
Copy link
Contributor

I'm getting the same issue when I try to go to another route and then refresh it show 404 Not Found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants