Virtualmin is overriding the icons folder, why and how to disable it?

I noticed Virtualmin is overriding the /icons folder, just like here
Index of /icons

Here is my site with an icons folder, that has different stuff in the file system…

How can I disable this override?
|------------------------------|-------------------------------|
| OS type and version | Rocky 9x
| Webmin version | Latest |
| Virtualmin version | Latest |
| Webserver version | Latest |

Tried asking a few years back, but no candy… How to disable Virtualmin overriding the icons folder?

Virtualmin is doing no such thing.

That comes from the Apache package on your OS.

# grep -r icons /etc/httpd/
/etc/httpd/conf.d/awstats.conf.rpmnew:Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
/etc/httpd/conf.d/awstats.conf:#Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
/etc/httpd/conf.d/welcome.conf.rpmnew:Alias /poweredby.png /usr/share/httpd/icons/apache_pb3.png
/etc/httpd/conf.d/autoindex.conf:# We include the /icons/ alias for FancyIndexed directory listings.  If
/etc/httpd/conf.d/autoindex.conf:Alias /icons/ "/usr/share/httpd/icons/"
/etc/httpd/conf.d/autoindex.conf:<Directory "/usr/share/httpd/icons">
...
# rpm -qf conf.d/autoindex.conf
httpd-2.4.37-65.module+el8.10.0+1938+3b7755d4.3.x86_64

And, you can setup any icons folder you want in your Server Templates. What’s in a VirtualHost will override the system default behavior.

You could also disable autoindexing entirely, but it sounds like you want indexing, but you want to use your own icons. If you want you change to be system-wide, you could change autoindex.conf to point to custom icons…since it’s in /etc, changes should survive upgrades of Apache.