Is it possible to customize the directory listing appearance in Apache using .htaccess?

By default, Apache displays a simple directory listing when no index file is found in a directory. However, you can customize the appearance of this directory listing by using an .htaccess file. You can add directives in the .htaccess file to change the layout, style, and content of the directory listing.

# Disable default directory listing
Options -Indexes

# Custom error message for directory listing
ErrorDocument 403 /path/to/custom-error-page.html