Question

Why my website is not loading images ?

Posted July 30, 2021 109 views
DigitalOceanDeploymentDeveloper Education

I have uploaded a static website through Filezilla on a new droplet and has installed Apache as a server. Whereas all the site is functioning properly some of the images are not showing up. The console is showing 404 error (not found) whereas i have checked several times the path mentioned in html is also correct and the files are also properly placed in the folder. Its that some of the files are showing and some not. While development its perfect on the local server. Please help me out as I am new to the hostings.

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.

×
Submit an Answer
1 answer

Hello,

Do you get mixed content errors in the console as well? What I could suggest is to install a Let’s Encrypt certificate for your website and then update all of the http:// references to https:// so that you would not get those mixed content errors.

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04

Let me know how it goes!
Regards,
Bobby

by Erika Heidi
Let's Encrypt is a Certificate Authority (CA) that facilitates obtaining and installing free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. Currently, the entire process of obtaining and installing a certificate is fully automated on both Apache and Nginx with the use of Certbot. In this guide, we'll use Certbot to obtain a free SSL certificate for Apache on Ubuntu 20.04, and make sure this certificate is set up to renew automatically.