othonasOriginal post
Web Developer
I am hosting an angular website using a self-hosted instance and appwrite sites. The problem I am facing is that when I open a link like domain.com/somepath the somepath should be handled from angular but now a 404 not found page is returned from appwrite sites. If I was using nginx I could add to location / { try_files $uri /index.html; } and this would fix the issue I am facing.
Summary
Angular website hosted on self-hosted instance with Appwrite sites is returning 404 errors for subroutes instead of being handled by Angular. Solution: Add ```location / { try_files $uri /index.html; }``` to configuration.