H5ai是用于HTTP Web服务器的现代文件索引器,专注于您的文件。目录以吸引人的方式显示,并且通过不同的视图,面包屑和树概述来增强对目录的浏览。最初,h5ai是HTML5 Apache Index的首字母缩写,但现在它也支持其他Web服务器。
步骤1-安装
需要PHP 5.5+
wget https: //release .larsjung.de /h5ai/h5ai-0 .29.2.zip
unzip h5ai-0.29.2.zip
|
将文件夹_h5ai复制到Web服务器的文档根目录:DOC_ROOT / _h5ai。
DOC_ROOT
├─ _h5ai
├─ your files
└─ and folders
|
将/ _h5ai / public / inde添加到http conf文件
例如,位于httpd.conf或根目录的.htaccess文件集中的Apache httpd 2.2 / 2.4:
DirectoryIndex index.html index.php /_h5ai/public/index.php
|
Nginx 1.2:在nginx.conf中设置例如:
index index.html index.php /_h5ai/public/index.php;
|
第2步-访问http://YOUR-DOMAIN.TLD/_h5ai/public/index.php,检查h5ai是否可访问。此页面显示有关服务器功能的一些提示。
公用缓存目录和专用缓存目录
chmod -R 755 /_h5ai/private
chmod -R 755 /_h5ai/public
|
使用EXIF拇指
电影拇指
yum install -y epel-release
rpm -- import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
yum repolist
rpm -- import http: //li .nux.ro /download/nux/RPM-GPG-KEY-nux .ro
rpm -Uvh http: //li .nux.ro /download/nux/dextop/el7/x86_64/nux-dextop-release-0-1 .el7.nux.noarch.rpm
yum repolist
yum install -y ffmpeg
ffmpeg -version
|
PDF拇指
yum -y install imagemagick
|
Shell tar,Shell zip和Shell du
Remove exec, passthru and scandir from php.ini disabled function
|
更改网站标题
vi _h5ai /private/php/pages/index .php
<title>Index of JackieSung< /title >
|
vi _h5ai /private/conf/options .json
|
"title" : {
"enabled" : true
},
|
vi _h5ai /public/js/scripts .js
|
Replace "/"===e?f.getDomain():n.name
with
"/"===e?'Something I want':n.name
|
原创文章,作者:cheshirex,如若转载,请注明出处:https://www.homedt.net/20437.html