I have a page on my site at /freeware, wiith .htaccess using fancy indexing to display a list of files for our clients and community. So we’re looking at a raw directory. Within the last couple weeks the icons stopped “working”. This has been working for a couple years now.
The .htaccess in our root path refers assigns icons like this (yes, with some overlaps):
AddIconByType (TXT,/icons/text.gif) text/*
AddIcon /icons/text.gif .txt
Our domain/icons path is linked via ln -s to /usr/share/apache/icons. So I’m using the DH icons rather than my own for this purpose.
The permissions on the link are lrwxrwxrwx.
From SSH I can cd to domain/icons and see all of the image files with -rw-r–r-- permissions.
If I try to browse to domain.com/icons/text.gif, I not only get an Apache 403 message that access is forbidden, but I also get this:
You don’t have permission to access /icons/text.gif on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I’m using custom error pages and my 403 has never failed. I can force a 404 with domain.com/xyz.htm, and I see our custom 404.html page. I see 403.html and 404.html in the same directory with the same permissions.
So to recap, it seems HTTP can’t see some files as directed by .htaccess, but it can others.
I’m REALLY CONFUSED!
I’m guessing someone changed the way Apache is processing .htaccess or permissions. Were there any recent code changes, patches, upgrades, shuffling of domains…? We’re on ‘seltzer’, nothing has changed here…