# Images not loading on local webserver

**URL:** https://boards.straightdope.com/t/images-not-loading-on-local-webserver/205494
**Category:** Factual Questions
**Created:** [October 4, 2003, 4:12am UTC](https://boards.straightdope.com/t/images-not-loading-on-local-webserver/205494 "2003-10-04T04:12:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Civil\_Defense](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@Civil\_Defense](https://boards.straightdope.com/u/Civil_Defense)
#### Post date: [October 4, 2003, 4:12am UTC](https://boards.straightdope.com/t/images-not-loading-on-local-webserver/205494/1 "2003-10-04T04:12:31Z")

</div>

When viewing pages stored on my webserver (either from /localhost/ or /my ip address/), the pages and scripts load/run fine, but no images are displayed. The images are replaced with image placeholders. Others viewing pages from my Apache server are seeing the images fine.

Any ideas?

Thanks!

---

<div class="post-metadata">

### Author: ![Civil\_Defense](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@Civil\_Defense](https://boards.straightdope.com/u/Civil_Defense)
#### Post date: [October 4, 2003, 4:17am UTC](https://boards.straightdope.com/t/images-not-loading-on-local-webserver/205494/2 "2003-10-04T04:17:18Z")

</div>

Also, trying to open the image file directly (ie: [http://ipaddress/images/test.jpg](http://ipaddress/images/test.jpg)) results in a 403 Forbidden error.

If that helps 🙂

---

<div class="post-metadata">

### Author: ![Civil\_Defense](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@Civil\_Defense](https://boards.straightdope.com/u/Civil_Defense)
#### Post date: [October 4, 2003, 4:27am UTC](https://boards.straightdope.com/t/images-not-loading-on-local-webserver/205494/3 "2003-10-04T04:27:50Z")

</div>

Another update… 🙂

I fixed my primary .htaccess file to now include:

\<FilesMatch “.(gif|png|jpe?g)$”\>  
Order Allow,Deny  
Allow from all  
\</FilesMatch\>

so I can now view the files directly via URL. However, inside an HTML document, they still appear as image placeholders (not as broken image placeholders).
