Skip to content
Advertisement

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

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.

Advertisement

Answer

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.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement