How to enable a directory listing in Apache web server [closed]

See if you are able to access/list the ‘/icons/’ directory. This is useful to test the behavior of “Directory” in Apache.

For example: You might be having the below configuration by default in your httpd.conf file. So hit the URL IP:Port/icons/ and see if it lists the icons or not. You can also try by putting the ‘directory/folder’ inside the ‘var/www/icons’.

Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews
    AllowOverride None
    Require all granted
</Directory>

If it does work, then you can cross-check or modify your custom directory configuration with the ‘<Directory “/var/www/icons”>’ configuration.

Leave a Comment