apache httpd
How to add header footer in directory listing in Apache (httpd)?
如何在Apache ( httpd )的目录列表中添加页眉页脚?
In the web directory’s .htaccess file:
在Web目录的.htaccess文件中:
Options +Indexes
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
HeaderName /header.html
ReadmeName /footer.html
IndexIgnore header.html footer.html .htaccess
header.html and footer.html are under the website root directory (not the Linux root).
header.html和footer.html位于网站根目录(而不是Linux根目录)下。
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
翻译自: https://www.systutorials.com/add-header-footer-in-directory-listing-in-apache-httpd/
apache httpd