Images/icons are not loaded at "Index Of/", Apache2, Debian 12

Discussion in 'General' started by touro8211, Jun 6, 2025.

  1. touro8211

    touro8211 New Member

    Hello,

    when I try to view the folder contents via the web browser, the images/icons aren't displayed or can't be loaded.

    I installed ISPConfig with the script on Debian 12.

    Attached is a picture of the problem. Is it possible to disable the images/icons or to load them?

    Screenshot 2025-06-06 082655.png
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    You should check the access.log for this webspace. If there are 404/403 errors to the folder "/icon" when you load this Index of / then the most likely cause is that apache does not know where to locate the icons. That usually happens when the /usr/share/apache2/icons location is missing in autoindex.conf.
     
  3. touro8211

    touro8211 New Member

    In the access Log, there's a 404 error...

    Code:
    192.168.100.141 - - [10/Jun/2025:15:09:16 +0200] "GET /icons/binary.gif HTTP/1.1" 404 360 "https://files.space.de/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0"
    The icons are located under /usr/share/apache2/icons.

    What exactly do I have to enter in the autoindex.conf?
     
  4. pyte

    pyte Well-Known Member HowtoForge Supporter

    I guess you need these two configs somewhere in autoindex.conf:
    Code:
    Alias /icons/ "/usr/share/apache2/icons/"
    
    <Directory "/usr/share/apache2/icons">
        Options Indexes MultiViews
        AllowOverride None
        Require all granted
    </Directory>
    And make sure to restart apache2 service after chaning this.
     

Share This Page