Closed f3l1x98 closed 3 months ago
When running in Docker using docker-compose up, the frontend will always return 404 when reloading the page, resulting into the following logs.
docker-compose up
web_1 | 172.24.128.1 - - [13/Jun/2024:15:21:28 +0000] "GET /auth/login HTTP/1.1" 404 153 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-" web_1 | 2024/06/13 15:21:28 [error] 29#29: *1 open() "/usr/share/nginx/html/auth/login" failed (2: No such file or directory), client: 172.24.128.1, server: localhost, request: "GET /auth/login HTTP/1.1", host: "localhost" web_1 | 172.24.128.1 - - [13/Jun/2024:15:21:28 +0000] "GET /favicon.ico HTTP/1.1" 200 15086 "http://localhost/auth/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
It looks like NGINX refuses to serve the index.html file and pass the route into it, even if it does not find a file for the given path.
When running in Docker using
docker-compose up
, the frontend will always return 404 when reloading the page, resulting into the following logs.It looks like NGINX refuses to serve the index.html file and pass the route into it, even if it does not find a file for the given path.