7

When trying to use

<img src="../Ginger.jpeg" />

I am getting a 403 error.

Here is the page which is requesting:

http://laponderosakennels.com/beagles/memories/ginger/index.html

What is going on here am I just tired?

CodingIsAwesome
  • 1,946
  • 7
  • 36
  • 54
  • http://laponderosakennels.com/beagles/memories/ seems like `jpEg` are not working, others are. Have you checked the permissions are set to read? – Moak Sep 25 '11 at 06:50
  • Directly navigating to the image also gets a 403. Sounds like a server configuration problem. Check your file permissions. – sethobrien Sep 25 '11 at 06:51
  • so do something like chmod? what am looking for? – CodingIsAwesome Sep 25 '11 at 07:10
  • I think Moak is on to something. Check your apache config and make sure it's set up to serve .jpeg files as image/jpg, since it's only the files with that extension that are failing. – sethobrien Sep 25 '11 at 07:18
  • Yes, `chmod` can fix the problem if you discover that it's permissions, but first you should `ls -lh` the directory to see if the permissions for the failing file are any different than the others. If it's the same, that's not the problem. – sethobrien Sep 25 '11 at 07:26
  • By permissions I meant both permissions and ownership; feel free to `chown` as necessary too. – sethobrien Sep 25 '11 at 07:32

3 Answers3

9

if you look at http://laponderosakennels.com/beagles/memories/Ginger.jpeg it throws a 403 error.. there is a permission issue for the same.

The problem is probably cos you are referring to the wrong file.. i took the liberty of looking at your folder structure and you are referring to ginger.jpeg which has a permission issue and there is a file ginger.jpg that works fine.

Also make sure you refer to the file correctly.. i.e ginger.jpg

Baz1nga
  • 15,485
  • 3
  • 35
  • 61
5

This can also be caused by using hotlinking protection. So if hotlinking protection is used, make sure that the URL for your website is added to the white list. Also keep in mind that www.yourdomain.com and yourdomain.com are considered two different URLs.

Casey Gibson
  • 2,577
  • 1
  • 20
  • 23
2

403 stands for permission denied. You need to check the permissions for "Ginger.jpeg".

ace
  • 7,293
  • 3
  • 23
  • 28