I set up a web-server in my spare time (for the experience) and have had repeated issues with files suddenly returning 403 Forbidden.
This happened with my stylesheets, and now has happened with a screenshot I put in the Images directory.
both the file (a PNG) and the directory had the same permissions. And the image is displayed if I move it to another directory.
The directory:
dr-xr-xr-x 2 root userX 4.0K 2008-01-30 15:08 Images
-r-xr-xr-x 1 root userX 333K 2008-01-30 15:07 Screenshot.png
(I did notice the numbers "2" and "1" on the listing, and don't know if this has anything to do with this.)
Code:
Index of /Images
[ICO] Name Last modified Size Description
[DIR] Parent Directory -
Apache/2.2.6 (Fedora) Server at xxx.xxx.xxx.xxx Port 80
The logs are filled with entries such as this:
[Wed Jan 30 21:21:02 2008] [error] [client xxx.xxx.xxx.xxx] (13)Permission denied: access to /Images/Screenshot.png denied
I did find one or two threads discussing a similar thing, but they are old (2005-ish) and they didn't have a conclusion.
Is there a way of fixing this, or would I be better off FFR-ing the machine and trying again?