#Nginx - Angular issues with routes

7 messages · Page 1 of 1 (latest)

drifting ruin
#

I have deployed Angular with a nginx service with docker yesterday. I now the following issue : when i go to the front page (/) it work fine, if i use a routerLink to go to different pages it work fine too, but when ever i'm on a page and i refresh i got a 404 :/

My guess is that when i'm on <url>/ it work fine because nginx just look after th index.html but when i'm on <url>/page/example it try to go throw some directory to find an index.html that doesnt exist.

#

My page.routes.js

#

My dockerfile (i know it's not latest don't kill me)

#

thanks to anyone that can help me throw this NE_PeepoKingLove

dapper breach
drifting ruin
#

Thanks to both of you ! gonna have a look Hyppers