Sunday, April 10, 2022

[SOLVED] sub URLs to my website not loading on Linux, Azure and Nginx - 404 not found

Issue

Can someone please help on what the issue is here.

I have a React web app hosted on Azure Web App. It has been deployed successful.

My problem is, if, for example, I go to the site on myweb.azurewebsites.net it loads well. And if I click on a button like the "signin" button it redirects me to myweb.azurewebsites.net/signin.

However, if I manually type in myweb.azurewebsites.net/signin into the browser, it gives an "Nginx not found" error.

Can someone help on what the issue is. I suspects it's between Azure and/or Nginx.


Solution

I discovered that I didn't add an Nginx conf file and copy it into the Nginx Docker container. When I did that, it works fine.



Answered By - Fhuad Balogun
Answer Checked By - Candace Johnson (WPSolving Volunteer)