Recognition

Posts

3 Posts
  • Published Answer

    Nginx 404 error with existing urls Angular 2 One page application with routing

    @jtittle Thank you for the help! that worked :)
    By marcduplessis1
  • Published Question

    Nginx 404 error with existing urls Angular 2 One page application with routing

    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: 2017/02/14 ...
    Accepted Answer: @marcduplessis1 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...
    4 By marcduplessis1 Nginx Ubuntu 16.04
  • Published Question

    Hosting Angular 2 application with Django rest framework backend API

    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-...
    Accepted Answer: @marcduplessis1 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...
    1 By marcduplessis1 Django Deployment API Ubuntu 16.04