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?
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:Yes, I do:
LoadModule autoindex_module libexec/apache2/mod_autoindex.so
Here's what I have in the .htaccess file for the directory being shared:
<Files *> Options +Indexes IndexOptions FancyIndexing NameWidth=48 SuppressDescription SuppressLastModified AddIcon (IMG,/icons/image2.gif) .gif .jpg .png AddIcon (TXT,/icons/text.gif) .htm .html .txt AddIcon (PDF,/icons/pdf.gif) .pdf </Files>