I have fancyindexing enabled in Apache on my machine running Sierra, but the icons are not appearing in directory listings. The error logs don’t seem to indicate that the client is even trying to retrieve them. How can I get the icons to appear?
Do you have the autoindex_module loaded in httpd.conf ?
[doublepost=1539346087][/doublepost]Here's my directory config for the root directory:
<Directory /Users/henry/www/local-root>
Options Indexes FollowSymLinks MultiViews
IndexOptions NameWidth=* FancyIndexing FoldersFirst IgnoreCase
AllowOverride None
Require all granted
</Directory>
Results in this:
And the icons are referenced as so:
<img src="/icons/folder.gif" alt="[DIR]">
Rather than using .htaccess, have you considered/tried configuring the directory in httpd.conf? I have had to fight/research with .htaccess directives to get them right, and there might be something else you need to include in .htaccess to make it work. I only use them when absolutely necessary, such as when the server is hosted by an ISP and I don't have direct access to httpd.conf. Here is a partial snippet of my .htaccess file from an ISP hosted server: