Question

Nginx image issue when port removed from url

I was following this tutorial: https://blog.cloudboost.io/deploying-a-node-js-express-application-on-digital-ocean-part-2-573f0b8b8ea4 and when I get to the part about removing the the port number from the URL, the website still works but now none of my images will load. Does it have something to do with the fact that I have my React app redirecting from “/” to “/Home”?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @mikedq1225,

What is the exact error that you get in your web console?

What I would suggest instead is following the steps from this step by step tutorial here on how to set up your application for production with Nginx:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-18-04

Let me know how it goes. Regards, Bobby