无法从XAMPP加载.jpg

I have a simple website, running on XAMPP locally. I am loading many elements from it, including some CSS, some JS, and even a video running in videojs. However when I call this

<img class="thumbnail" src="//localhost/xxxx/config/logo.jpg"/>

it just gives me the broken image icon. However, when I call it from another website, hosted by someone else, it loads fine. What am i doing wrong here?

edit: these other statements work fine

<link rel="stylesheet" href="//localhost/xxxx/css/bootstrap.css">

<script src="//localhost/xxxx/js/bootstrap.min.js"></script>

Try the following:

  • Check the file permissions, give yourself full access (read & write).
  • Try use the path /config/logo.jpg

I've experienced a similar problem with file permissions when I save the image to my localhost directly from another website.