My web server used mod_autoindex
to give access to a directory of downloadable files.
How can I make the generated html include my own tags in the header section?
P.S. What I really want is to insert a viewport <meta> tag to help prevent Google flagging the website as "not mobile friendly"
The trick is to use the
IndexHeadInsert
directive in your mod_autoindex config. For me, using Arch Linux, that's in/etc/httpd/conf/extra/httpd-autoindex.conf
but it may be different on your distro.