howto: Server - file listings rev 12 nov 2021 Sometimes you want to have a download directory or a collection of files and resources, and you don't want to spend time updating an index file, or the overhead of running php or some other language -- security, version updating, etc. Sometimes you just want to just throw things in for people to get -- like where you found this file -- and with the basic functionality of the Apache web server (and a couple others), you can do just that. My philosophy is always, do things closest to the basic tech when possible, build on that only when you need it. So -- we can do a lot with server file listings, and don't need to run php or other things! > info | howtos | examples ....................................................... info: You use the .htaccess file to - allow file listings (normally by default you *don't* want file listings - security!); - configure what files to use to display futher information (such as a HEADER.html, FOOTER.html, a stylesheet, descriptions; - hide files that don't need to be listed (such as those same files!); - and more. Apache server-side-includes makes it even more dynamic and manageable. For details on all these, see the how-tos and doc links, below ↓ ....................................................... how-tos: Put the basic configuration in docroot-level .htaccess, such as index access, standard names of readme, footer, location of standard stylesheet, filetype-icon mappings, and like that. And then in each directory .htaccess put directory-specific things, such as document descriptions. See the doc links, below ↓ ....................................................... examples: https://media.kowthamcenter.org/books/ https://www.webwalker.to/samma-kammanta/ Here's even a little search engine built in to it, ok we did get a little php going :) https://www.webwalker.to/samma-kammanta/Plugin-notes/ ....................................................... documentation: Simple explanations and examples: https://cwiki.apache.org/confluence/display/httpd/DirectoryListings https://www.linickx.com/css-styling-apache-directory-listings https://www.siteground.com/kb/modify-directory-listing-style/ Everything - Apache Module mod_autoindex Apache 2.4 Documentation https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html https://httpd.apache.org/docs/current/mod/mod_autoindex.html Styling Apache Directory Listings With Mod_autoindex https://www.daveperrett.com/articles/2008/12/29/styling-apache-directory-listings-with-mod_autoindex/ Apache: The Definitive Guide (O'Reilly) https://docstore.mik.ua/orelly/linux/apache/ _______________________________________________________ begin 9 nov 2018 -- 0 --