Base solution for your next web application
Open Closed

Sudden NGINX routing issue in production #12511


User avatar
0
ips-jm created

Hello,

We recently migrated our production environment from Debian Buster to Debian Bookworm. This change has caused the default NGINX configuration for the Angular frontend to stop working, as it had been functioning for five years. We are deploying with your provided Dockerfiles and haven't touched them for the frontend.

To resolve this issue, we need to add the following line to the default.conf file (location /) after building the frontend image using your provided script (build-with-ng.ps1): try_files $uri $uri/ /index.html;

This is explained in more detail here: https://angular.dev/tools/cli/deployment#routed-apps-must-fall-back-to-indexhtml We are unsure why this change is necessary or why it was previously working without it. Could you please update your script to include this line or check this?

Thank you!

Greetings, Julian

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

2 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @ips-jm

    Thank you for your feedback. We have created an issue for this and will investigate it in detail. You can follow the updates through the issue.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ips-jm created

    Thank you for the quick implementation!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)