[Nottingham] Seriously weird Apache permission problem
James Gibbon
jg at jamesgibbon.com
Sat Jun 18 20:29:12 BST 2005
Hiya,
I run a webserver here at home, and I'm getting a repeatable,
yet, in another sense, unpredictable problem accessing images
from it.
This example seems to illustrate the problem quite nicely. I
have two identical image files, one a copy of the other, with
identical permissions, in the same directory.
[root at dino images]# ls -l *lifes*
-rw-r--r-- 1 apache apache 11044 Jun 18 18:13 BAKlifeson.jpg
-rw-r--r-- 1 apache apache 11044 Jun 18 18:42 lifeson.jpg
[root at dino images]#
Attempting to browse the first of these files gives me the
dreaded "Forbidden" message ("You don't have permission to
access /images/BAKlifeson.jpg on this server") in my browser,
firefox. However I can view the second quite normally.
It's not a browser cache issue, or a browser issue at all: I
get the same behaviour with wget:
dino:~> wget http://groover.kicks-ass.net/images/BAKlifeson.jpg
--20:17:47-- http://groover.kicks-ass.net/images/BAKlifeson.jpg
=> `BAKlifeson.jpg'
Resolving groover.kicks-ass.net... 192.168.2.2
Connecting to groover.kicks-ass.net[192.168.2.2]:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
20:17:47 ERROR 403: Forbidden.
dino:~> wget http://groover.kicks-ass.net/images/lifeson.jpg
--20:17:56-- http://groover.kicks-ass.net/images/lifeson.jpg
=> `lifeson.jpg'
Resolving groover.kicks-ass.net... 192.168.2.2
Connecting to groover.kicks-ass.net[192.168.2.2]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11,044 [image/jpeg]
100%[====================================>] 11,044 --.--K/s
20:17:56 (47.87 MB/s) - `lifeson.jpg' saved [11,044/11,044]
dino:~>
I'm running Apache 2.0.54 under Fedora Core 4.
Anyone seen anything similar, or have any clues? I'm stumped.
James
--
Dig It : a forum for European Beatles fans - http://beatles.dyndns.org/
More information about the Nottingham
mailing list