Score:1

Why is my Apache2 webserver on my Ubuntu server 22.04.1 not loading some of the images

ge flag

So I have uploaded and done all the steps to host my website on my ubuntu server using apache2 I doubled check the files and code but some of the images on the website are not loading.

This is the log: enter image description here

This is what I see from the network console:

enter image description here

These are the image files:

These are the files on the server:

![The field are in the server guaranteed as shown in the Console][4]

Score:1
in flag

A lot of Apache instances are case sensitive by default. Your website is asking for copper_ore.webp, iron_ore.webp, and gold_ore.webp. However these files are stored as Copper_ore.webp, Iron_ore.webp, and Gold_ore.webp on the server. The simplest solution would be to change the case of the files to all be lower-case, and you'll probably want to do this for Silver_ore.webp as well.

Jason avatar
ge flag
I changed it to them and re uploaded and it still did not work
in flag
If you haven't done so already, you will want to disable the cache in the browser while the Developer Tools are open. This will ensure that resources are grabbed from the server with every request rather than using the browser's local cache, which will remember the 404s from before. If the images continue to fail, you will want to check the Apache log (`/var/log/apache2/{site}-error.log`) and/or the HTML source to ensure the path is correct.
Jason avatar
ge flag
IT seems to not be updating al all even with cache disabled and I also replaced the old folder
Jason avatar
ge flag
It's good now I did some stuff and it worked
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.