[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apache directory listing
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Apache directory listing
- From: David Jenkins <david_(_dot_)_jenkins_(_at_)_gmail_(_dot_)_com>
- Date: Wed, 15 Sep 2004 20:23:15 +0100
- Reply-to: David Jenkins <david_(_dot_)_jenkins_(_at_)_gmail_(_dot_)_com>
> > I am running OpenBSD 3.5 and using the default apache supplied with
> > it. It is not running Chrooted.
> >
> > I have added an alias for /usr/src/ to apache so I can easily browse
> > the source code via my browser.
> >
> > When it displays the directory listing for /usr/src "usr.bin" does not
> > have the default icon for a directory next to it like usr.sbin and
> > everything else in that directory (except the Makefile). It has the
> > default "binary.gif" icon.
> >
> > Here is part of the source code for the page.
> >
> > <IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="share/">share/</A>
> > 30-Mar-2004 02:13 -
> > <IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="sys/">sys/</A>
> > 30-Mar-2004 02:14 -
> > <IMG SRC="/icons/binary.gif" ALT="[DIR]"> <A
> > HREF="usr.bin/">usr.bin/</A> 30-Mar-2004 02:14 -
> > <IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A
> > HREF="usr.sbin/">usr.sbin/</A> 30-Mar-2004 02:15 -
The problem is now fixed.
If anyone's interested here's how I did it - there's probably a better
way but this works.
Originally, in httpd.conf, this was the case:
AddIcon /icons/binary.gif .bin .exe
# some other icons ...
AddIcon /icons/folder.gif ^^DIRECTORY^^
I tried re-ordering, to put the ^^DIRECTORY^^ before the ".bin .exe"
but that didn't work.
In the end I removed the .bin from the binary.gif line, leaving:
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/binary.gif .exe
# some other icons ...
And this works fine.
PS - Thanks Ben :)
Regards,
David
Visit your host, monkey.org