I have a one-page angular 2 application that uses routing. When I hit my base URL example.com then the page loads correctly. However example.com/dashboard results in a 404 error.
My server logs have this:
Instead of using:
try_files $uri $uri/ =404;
... try using:
try_files $uri $uri/ /index.html;
This assumes that Angular is setup to handle requests that are sent to index.html and will route all r...
I want to be able to host my angular 2 website that using a Django rest framework API. I followed this tutorial to host a django app https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-...
The guide mentioned covers handling the setup of your Django app. To setup another, you'd need to setup another server block to handle your Angular application/website. How you'd go about doing it dep...