Report this

What is the reason for this report?

Nginx image issue when port removed from url

Posted on July 18, 2020

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”?



This textbox defaults to using Markdown to format your 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.